]> git.eshelyaron.com Git - emacs.git/commitdiff
Improvement for long line optimizations.
authorGregory Heytings <gregory@heytings.org>
Fri, 29 Jul 2022 15:26:49 +0000 (15:26 +0000)
committerGregory 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

index 8a4cca8434b5e968f75d4106503cbb4187c84b47..9580e596012d673560466c9e6498b6a14c48e4e8 100644 (file)
@@ -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'