projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ebd045
)
Improvement for long line optimizations.
author
Gregory Heytings
<gregory@heytings.org>
Fri, 29 Jul 2022 15:26:49 +0000
(15:26 +0000)
committer
Gregory Heytings
<gregory@heytings.org>
Fri, 29 Jul 2022 15:33:29 +0000
(17:33 +0200)
* src/xdisp.c (handle_fontified_prop): Also apply the forced
narrowing at BOB.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 8a4cca8434b5e968f75d4106503cbb4187c84b47..9580e596012d673560466c9e6498b6a14c48e4e8 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-4407,8
+4407,9
@@
handle_fontified_prop (struct it *it)
eassert (it->end_charpos == ZV);
- if (it->narrowed_begv)
- Fnarrow_to_region (make_fixnum (it->narrowed_begv),
+ if (current_buffer->long_line_optimizations_p)
+ Fnarrow_to_region (make_fixnum (it->narrowed_begv ?
+ it->narrowed_begv : BEGV),
make_fixnum (it->narrowed_zv), Qt);
/* Don't allow Lisp that runs from 'fontification-functions'