mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -08:00
(try_window_id): Recompute unchanged information if
it is invalid.
This commit is contained in:
parent
64d739c445
commit
28ee91c0e5
1 changed files with 3 additions and 5 deletions
|
|
@ -10034,7 +10034,9 @@ try_window_id (w)
|
|||
only if buffer has really changed. The reason is that the gap is
|
||||
initially at Z for freshly visited files. The code below would
|
||||
set end_unchanged to 0 in that case. */
|
||||
if (MODIFF > SAVE_MODIFF)
|
||||
if (MODIFF > SAVE_MODIFF
|
||||
/* This seems to happen sometimes after saving a buffer. */
|
||||
|| BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
|
||||
{
|
||||
if (GPT - BEG < BEG_UNCHANGED)
|
||||
BEG_UNCHANGED = GPT - BEG;
|
||||
|
|
@ -10042,10 +10044,6 @@ try_window_id (w)
|
|||
END_UNCHANGED = Z - GPT;
|
||||
}
|
||||
|
||||
/* Some strange bug seems to be causing that to happen sometimes. */
|
||||
if (BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
|
||||
abort ();
|
||||
|
||||
/* If window starts after a line end, and the last change is in
|
||||
front of that newline, then changes don't affect the display.
|
||||
This case happens with stealth-fontification. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue