From e60f45278bd1479894f5842f23a5c3db44aa94f5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 10 May 2001 12:40:21 +0000 Subject: [PATCH] (try_window_id): Fix case of all changes before the window start. --- src/xdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index f9b9cb3c9ab..82c5dbc54d5 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -11179,9 +11179,9 @@ try_window_id (w) be adjusted, of course. */ row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos)); if (MATRIX_ROW_DISPLAYS_TEXT_P (row) - && ((first_changed_charpos < CHARPOS (start) + && ((last_changed_charpos < CHARPOS (start) && CHARPOS (start) == BEGV) - || (first_changed_charpos < CHARPOS (start) - 1 + || (last_changed_charpos < CHARPOS (start) - 1 && FETCH_BYTE (BYTEPOS (start) - 1) == '\n'))) { int Z_old, delta, Z_BYTE_old, delta_bytes; -- 2.39.2