aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8e0cf0d89a..93a90dafdf 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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 */