diff options
| author | Gregory Heytings | 2022-07-29 15:26:49 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-07-29 17:33:29 +0200 |
| commit | ebe9cd3e9fbf7817b8bf458a036f5a33a786662d (patch) | |
| tree | afe3ad22ebb3867d43714d343eae58211c9326cc /src | |
| parent | 9ebd0455f344e6806400fef2ee0b410a33b68ad5 (diff) | |
| download | emacs-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.c | 5 |
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' |