# HG changeset patch # User Gerd Moellmann # Date 989498421 0 # Node ID b88adb23e3e1d5f0ff74541604d77fdf765f7eee # Parent cf76004c607634fc05764a6d899cbd7f9cdbfb74 (try_window_id): Fix case of all changes before the window start. diff -r cf76004c6076 -r b88adb23e3e1 src/xdisp.c --- a/src/xdisp.c Thu May 10 12:25:51 2001 +0000 +++ b/src/xdisp.c Thu May 10 12:40:21 2001 +0000 @@ -11179,9 +11179,9 @@ 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;