Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 3460:66c7cca774f5
[gaim-migrate @ 3508]
Thanks, Eric Melski.
This patch will make gtkimhtml no longer give up at the shortest match.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 28 Aug 2002 07:44:46 +0000 |
parents | 7c26704c141a |
children | ec437d73b2ee |
comparison
equal
deleted
inserted
replaced
3459:d82f53194f09 | 3460:66c7cca774f5 |
---|---|
179 gint len = 0; | 179 gint len = 0; |
180 | 180 |
181 while (*x) { | 181 while (*x) { |
182 gchar *pos; | 182 gchar *pos; |
183 | 183 |
184 if (t->image) | |
185 return len; | |
186 | |
187 if (!t->values) | 184 if (!t->values) |
188 return 0; | 185 break; |
189 | 186 |
190 pos = strchr (t->values->str, *x); | 187 pos = strchr (t->values->str, *x); |
191 if (pos) | 188 if (pos) |
192 t = t->children [(int) pos - (int) t->values->str]; | 189 t = t->children [(int) pos - (int) t->values->str]; |
193 else | 190 else |
194 return 0; | 191 break; |
195 | 192 |
196 x++; len++; | 193 x++; len++; |
197 } | 194 } |
198 | 195 |
199 if (t->image) | 196 if (t->image) |