comparison src/xdisp.c @ 27011:fed3d128eeed

(try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED if MODIFF > 1.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 28 Dec 1999 12:05:39 +0000
parents d7f15cd9c4ad
children 526f3b2398ce
comparison
equal deleted inserted replaced
27010:4be26de6d837 27011:fed3d128eeed
10018 10018
10019 /* Make sure beg_unchanged and end_unchanged are up to date. Do it 10019 /* Make sure beg_unchanged and end_unchanged are up to date. Do it
10020 only if buffer has really changed. The reason is that the gap is 10020 only if buffer has really changed. The reason is that the gap is
10021 initially at Z for freshly visited files. The code below would 10021 initially at Z for freshly visited files. The code below would
10022 set end_unchanged to 0 in that case. */ 10022 set end_unchanged to 0 in that case. */
10023 if (MODIFF > SAVE_MODIFF) 10023 if (MODIFF > 1)
10024 { 10024 {
10025 if (GPT - BEG < BEG_UNCHANGED) 10025 if (GPT - BEG < BEG_UNCHANGED)
10026 BEG_UNCHANGED = GPT - BEG; 10026 BEG_UNCHANGED = GPT - BEG;
10027 if (Z - GPT < END_UNCHANGED) 10027 if (Z - GPT < END_UNCHANGED)
10028 END_UNCHANGED = Z - GPT; 10028 END_UNCHANGED = Z - GPT;