diff options
| author | Eli Zaretskii | 2022-08-16 15:27:15 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-08-16 15:27:15 +0300 |
| commit | ad2dba38b2347c9070700c789d5097b4bbafddf5 (patch) | |
| tree | 352c8139128c3739f429f7973456ff624430e719 | |
| parent | 5e5c56f1487c3c23476ac87d9a779cc387a0fb8a (diff) | |
| download | emacs-ad2dba38b2347c9070700c789d5097b4bbafddf5.tar.gz emacs-ad2dba38b2347c9070700c789d5097b4bbafddf5.zip | |
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.
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 0248e8e53f1..03c43be5bc0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19589,7 +19589,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) | |||
| 19589 | { | 19589 | { |
| 19590 | ptrdiff_t cur, next, found, max = 0, threshold; | 19590 | ptrdiff_t cur, next, found, max = 0, threshold; |
| 19591 | threshold = XFIXNUM (Vlong_line_threshold); | 19591 | threshold = XFIXNUM (Vlong_line_threshold); |
| 19592 | for (cur = BEG; cur < Z; cur = next) | 19592 | for (cur = BEGV; cur < ZV; cur = next) |
| 19593 | { | 19593 | { |
| 19594 | next = find_newline1 (cur, CHAR_TO_BYTE (cur), 0, -1, 1, | 19594 | next = find_newline1 (cur, CHAR_TO_BYTE (cur), 0, -1, 1, |
| 19595 | &found, NULL, true); | 19595 | &found, NULL, true); |