]> git.eshelyaron.com Git - emacs.git/commitdiff
(fast_find_position): Fix return value of new version
authorKim F. Storm <storm@cua.dk>
Tue, 17 Feb 2004 21:06:59 +0000 (21:06 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 17 Feb 2004 21:06:59 +0000 (21:06 +0000)
(was inverted compared to the 21.1 version).

src/xdisp.c

index 8e0cf0d89adab9c15ffba242e379396aaf7353e3..93a90dafdfe9571a1184d862b38783522c6c4cfe 100644 (file)
@@ -19656,7 +19656,7 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
       if (charpos < MATRIX_ROW_START_CHARPOS (first))
        {
          *x = *y = *hpos = *vpos = 0;
-         return 0;
+         return 1;
        }
       else
        {
@@ -19696,7 +19696,7 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
     }
 
   *hpos = glyph - row->glyphs[TEXT_AREA];
-  return past_end;
+  return !past_end;
 }
 
 #else /* not 1 */