comparison src/xdisp.c @ 39329:52983980d01d

(try_window_id) [!GLYPH_DEBUG]: Give up if first_unchanged_at_end_row is in front of last_unchanged_at_beg_row. This code should be removed after the release of 21.1.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 18 Sep 2001 10:30:35 +0000
parents b0b2129866f6
children 17ddc09facff
comparison
equal deleted inserted replaced
39328:98b6406c8b5c 39329:52983980d01d
11489 row. For first_unchanged_at_end_row == NULL, use 0 to indicate 11489 row. For first_unchanged_at_end_row == NULL, use 0 to indicate
11490 that we don't stop at a buffer position. */ 11490 that we don't stop at a buffer position. */
11491 stop_pos = 0; 11491 stop_pos = 0;
11492 if (first_unchanged_at_end_row) 11492 if (first_unchanged_at_end_row)
11493 { 11493 {
11494 #if GLYPH_DEBUG
11494 xassert (last_unchanged_at_beg_row == NULL 11495 xassert (last_unchanged_at_beg_row == NULL
11495 || first_unchanged_at_end_row >= last_unchanged_at_beg_row); 11496 || first_unchanged_at_end_row >= last_unchanged_at_beg_row);
11497 #else
11498 /* This is for the release of 21.1 only, and should be removed
11499 after the release.
11500
11501 This case means that unchanged information is probably bogus,
11502 which leads to being unable to compute a correct
11503 first_unchanged_at_end_row. At least that was the case in
11504 one debugging session. I've fixed a bug that can lead to
11505 wrong unchanged info, but didn't find a way to reproduce this
11506 case. 2001-09-18 gerd. */
11507 if (last_unchanged_at_beg_row
11508 && first_unchanged_at_end_row < last_unchanged_at_beg_row)
11509 GIVE_UP (20);
11510 #endif
11496 11511
11497 /* If this is a continuation line, move forward to the next one 11512 /* If this is a continuation line, move forward to the next one
11498 that isn't. Changes in lines above affect this line. 11513 that isn't. Changes in lines above affect this line.
11499 Caution: this may move first_unchanged_at_end_row to a row 11514 Caution: this may move first_unchanged_at_end_row to a row
11500 not displaying text. */ 11515 not displaying text. */