From 7a272039b56da50d691379eaa00edd98b01d0514 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 17 Feb 2004 21:06:59 +0000 Subject: [PATCH] (fast_find_position): Fix return value of new version (was inverted compared to the 21.1 version). --- src/xdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 8e0cf0d89ad..93a90dafdfe 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 */ -- 2.39.2