src/gtkhtml.c

changeset 1004
c4dc44bbbc18
parent 985
3735b78b55a1
child 1057
0161606a8549
--- a/src/gtkhtml.c	Wed Oct 18 02:42:00 2000 +0000
+++ b/src/gtkhtml.c	Wed Oct 18 21:28:21 2000 +0000
@@ -2962,7 +2962,7 @@
 		static int count = 0;
 		count ++;
 		while (pos < num && (!isspace(text[pos]) || text[pos] == '\n')) pos++;
-		if (pos == num) {
+		if (pos >= num - 1) {
 			pos = num/2;
 			while (pos > 0 && (!isspace(text[pos]) || text[pos] == '\n')) pos--;
 			if (!pos) pos = num / 2;

mercurial