changeset 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 d82f53194f09
children c11960537fee
files src/gtkimhtml.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Wed Aug 28 07:24:12 2002 +0000
+++ b/src/gtkimhtml.c	Wed Aug 28 07:44:46 2002 +0000
@@ -181,17 +181,14 @@
 	while (*x) {
 		gchar *pos;
 
-		if (t->image)
-			return len;
-
 		if (!t->values)
-			return 0;
+			break;
 
 		pos = strchr (t->values->str, *x);
 		if (pos)
 			t = t->children [(int) pos - (int) t->values->str];
 		else
-			return 0;
+			break;
 
 		x++; len++;
 	}