diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 05fb008ff15..ee34487a444 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19294,7 +19294,9 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) | |||
| 19294 | /* Check whether the buffer to be displayed contains long lines. */ | 19294 | /* Check whether the buffer to be displayed contains long lines. */ |
| 19295 | if (!NILP (Vlong_line_threshold) | 19295 | if (!NILP (Vlong_line_threshold) |
| 19296 | && !current_buffer->long_line_optimizations_p | 19296 | && !current_buffer->long_line_optimizations_p |
| 19297 | && Z - BEG - BUF_UNCHANGED_SIZE (current_buffer) <= 1) | 19297 | && (MODIFF - UNCHANGED_MODIFIED > 4 |
| 19298 | || Z - BEG - BUF_UNCHANGED_SIZE (current_buffer) > 1 | ||
| 19299 | || Z - BEG - BUF_UNCHANGED_SIZE (current_buffer) < -1)) | ||
| 19298 | { | 19300 | { |
| 19299 | ptrdiff_t cur, next, found, max = 0; | 19301 | ptrdiff_t cur, next, found, max = 0; |
| 19300 | for (cur = 1; cur < Z; cur = next) | 19302 | for (cur = 1; cur < Z; cur = next) |