emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 368c7c7d8e: Improve detection of very long lines


From: Eli Zaretskii
Subject: emacs-29 368c7c7d8e: Improve detection of very long lines
Date: Thu, 1 Dec 2022 17:08:56 -0500 (EST)

branch: emacs-29
commit 368c7c7d8e4291bbfd5d9071333990645fb73254
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Improve detection of very long lines
    
    * src/xdisp.c (redisplay_window): Recheck for long lines if the
    restriction has changed.  (Bug#56682)
---
 src/xdisp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 171c6ccaa0..255851b921 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -19535,7 +19535,8 @@ redisplay_window (Lisp_Object window, bool 
just_this_one_p)
   /* Check whether the buffer to be displayed contains long lines.  */
   if (!NILP (Vlong_line_threshold)
       && !current_buffer->long_line_optimizations_p
-      && CHARS_MODIFF - CHARS_UNCHANGED_MODIFIED > 8)
+      && (CHARS_MODIFF - CHARS_UNCHANGED_MODIFIED > 8
+         || current_buffer->clip_changed))
     {
       ptrdiff_t cur, next, found, max = 0, threshold;
       threshold = XFIXNUM (Vlong_line_threshold);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]