aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGregory Heytings2022-07-29 15:26:49 +0000
committerGregory Heytings2022-07-29 17:33:29 +0200
commitebe9cd3e9fbf7817b8bf458a036f5a33a786662d (patch)
treeafe3ad22ebb3867d43714d343eae58211c9326cc /src
parent9ebd0455f344e6806400fef2ee0b410a33b68ad5 (diff)
downloademacs-ebe9cd3e9fbf7817b8bf458a036f5a33a786662d.tar.gz
emacs-ebe9cd3e9fbf7817b8bf458a036f5a33a786662d.zip
Improvement for long line optimizations.
* src/xdisp.c (handle_fontified_prop): Also apply the forced narrowing at BOB.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8a4cca8434b..9580e596012 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4407,8 +4407,9 @@ handle_fontified_prop (struct it *it)
4407 4407
4408 eassert (it->end_charpos == ZV); 4408 eassert (it->end_charpos == ZV);
4409 4409
4410 if (it->narrowed_begv) 4410 if (current_buffer->long_line_optimizations_p)
4411 Fnarrow_to_region (make_fixnum (it->narrowed_begv), 4411 Fnarrow_to_region (make_fixnum (it->narrowed_begv ?
4412 it->narrowed_begv : BEGV),
4412 make_fixnum (it->narrowed_zv), Qt); 4413 make_fixnum (it->narrowed_zv), Qt);
4413 4414
4414 /* Don't allow Lisp that runs from 'fontification-functions' 4415 /* Don't allow Lisp that runs from 'fontification-functions'