diff options
| author | Gerd Moellmann | 2000-03-05 10:21:53 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-05 10:21:53 +0000 |
| commit | 28ee91c0e5d64c8e88805cdd24e853be9a9e03e6 (patch) | |
| tree | 973f76968586cd11ce861e524c892b18d7553d60 /src | |
| parent | 64d739c445abf671e20cd6e9ab10da25deb83694 (diff) | |
| download | emacs-28ee91c0e5d64c8e88805cdd24e853be9a9e03e6.tar.gz emacs-28ee91c0e5d64c8e88805cdd24e853be9a9e03e6.zip | |
(try_window_id): Recompute unchanged information if
it is invalid.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5acc58d0d30..1401da80a75 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10034,7 +10034,9 @@ try_window_id (w) | |||
| 10034 | only if buffer has really changed. The reason is that the gap is | 10034 | only if buffer has really changed. The reason is that the gap is |
| 10035 | initially at Z for freshly visited files. The code below would | 10035 | initially at Z for freshly visited files. The code below would |
| 10036 | set end_unchanged to 0 in that case. */ | 10036 | set end_unchanged to 0 in that case. */ |
| 10037 | if (MODIFF > SAVE_MODIFF) | 10037 | if (MODIFF > SAVE_MODIFF |
| 10038 | /* This seems to happen sometimes after saving a buffer. */ | ||
| 10039 | || BEG_UNCHANGED + END_UNCHANGED > Z_BYTE) | ||
| 10038 | { | 10040 | { |
| 10039 | if (GPT - BEG < BEG_UNCHANGED) | 10041 | if (GPT - BEG < BEG_UNCHANGED) |
| 10040 | BEG_UNCHANGED = GPT - BEG; | 10042 | BEG_UNCHANGED = GPT - BEG; |
| @@ -10042,10 +10044,6 @@ try_window_id (w) | |||
| 10042 | END_UNCHANGED = Z - GPT; | 10044 | END_UNCHANGED = Z - GPT; |
| 10043 | } | 10045 | } |
| 10044 | 10046 | ||
| 10045 | /* Some strange bug seems to be causing that to happen sometimes. */ | ||
| 10046 | if (BEG_UNCHANGED + END_UNCHANGED > Z_BYTE) | ||
| 10047 | abort (); | ||
| 10048 | |||
| 10049 | /* If window starts after a line end, and the last change is in | 10047 | /* If window starts after a line end, and the last change is in |
| 10050 | front of that newline, then changes don't affect the display. | 10048 | front of that newline, then changes don't affect the display. |
| 10051 | This case happens with stealth-fontification. */ | 10049 | This case happens with stealth-fontification. */ |