diff options
| author | Gregory Heytings | 2022-07-19 13:33:38 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-07-19 15:35:14 +0200 |
| commit | 9a894206f6990eb5e0edc464dae02700a33d2348 (patch) | |
| tree | bf3ca474e252b77e5d63266085264f55198b607d /src | |
| parent | 7dcea5a428178a3778ab3cbea166580c6992f187 (diff) | |
| download | emacs-9a894206f6990eb5e0edc464dae02700a33d2348.tar.gz emacs-9a894206f6990eb5e0edc464dae02700a33d2348.zip | |
Improve the heuristic for long lines detection again.
* src/xdisp.c (redisplay_window): Improve the heuristic again.
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) |