emacs-diffs
[Top][All Lists]
Advanced

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

master ad2dba38b2: Don't look for long lines beyond the narrowed region


From: Eli Zaretskii
Subject: master ad2dba38b2: Don't look for long lines beyond the narrowed region
Date: Tue, 16 Aug 2022 08:28:22 -0400 (EDT)

branch: master
commit ad2dba38b2347c9070700c789d5097b4bbafddf5
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Don't look for long lines beyond the narrowed region
    
    * src/xdisp.c (redisplay_window): Don't scan for newlines outside
    the current buffer's restriction.
---
 src/xdisp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 0248e8e53f..03c43be5bc 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -19589,7 +19589,7 @@ redisplay_window (Lisp_Object window, bool 
just_this_one_p)
     {
       ptrdiff_t cur, next, found, max = 0, threshold;
       threshold = XFIXNUM (Vlong_line_threshold);
-      for (cur = BEG; cur < Z; cur = next)
+      for (cur = BEGV; cur < ZV; cur = next)
        {
          next = find_newline1 (cur, CHAR_TO_BYTE (cur), 0, -1, 1,
                                &found, NULL, true);



reply via email to

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