changeset 54052:c49824d1b4df

(fast_find_position): Fix return value of new version (was inverted compared to the 21.1 version).
author Kim F. Storm <storm@cua.dk>
date Tue, 17 Feb 2004 21:06:59 +0000
parents 668c0f8ab92b
children 10500fa1a2b1
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Feb 17 21:06:22 2004 +0000
+++ b/src/xdisp.c	Tue Feb 17 21:06:59 2004 +0000
@@ -19656,7 +19656,7 @@
       if (charpos < MATRIX_ROW_START_CHARPOS (first))
 	{
 	  *x = *y = *hpos = *vpos = 0;
-	  return 0;
+	  return 1;
 	}
       else
 	{
@@ -19696,7 +19696,7 @@
     }
 
   *hpos = glyph - row->glyphs[TEXT_AREA];
-  return past_end;
+  return !past_end;
 }
 
 #else /* not 1 */