src/gtkimhtml.c

changeset 9636
1648147987cd
parent 9621
9c25e270b20b
child 9696
9d62e1ec5977
--- a/src/gtkimhtml.c	Sun Aug 01 18:32:03 2004 +0000
+++ b/src/gtkimhtml.c	Sun Aug 01 22:00:33 2004 +0000
@@ -1460,6 +1460,10 @@
 		    x += alen - strlen(amp);
 		    pos = strchr (t->values->str, *amp);
 		}
+		else if (*x == '<') /* Because we're all WYSIWYG now, a '<' 
+				     * char should only appear as the start of a tag.  Perhaps a safer (but costlier)
+				     * check would be to call gtk_imhtml_is_tag on it */
+			return 0;
 		else
 		    pos = strchr (t->values->str, *x);
 

mercurial