From: Kim F. Storm Date: Tue, 17 Feb 2004 21:06:59 +0000 (+0000) Subject: (fast_find_position): Fix return value of new version X-Git-Tag: ttn-vms-21-2-B4~7544 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a272039b56da50d691379eaa00edd98b01d0514;p=emacs.git (fast_find_position): Fix return value of new version (was inverted compared to the 21.1 version). --- 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 */