projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5c56f
)
Don't look for long lines beyond the narrowed region
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 16 Aug 2022 12:27:15 +0000
(15:27 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 16 Aug 2022 12:27:15 +0000
(15:27 +0300)
* src/xdisp.c (redisplay_window): Don't scan for newlines outside
the current buffer's restriction.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 0248e8e53f12651bf91cb833ac166b191f22ab1f..03c43be5bc00b3527efcb2fe44ddc0f34e4c9eea 100644
(file)
--- 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 = BEG
V; cur < ZV
; cur = next)
{
next = find_newline1 (cur, CHAR_TO_BYTE (cur), 0, -1, 1,
&found, NULL, true);