aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-05-25 14:23:43 +0300
committerEli Zaretskii2024-05-25 14:23:43 +0300
commit4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d (patch)
treec447df6696f8cb4390616529353406047bc6f498 /src
parent1bf658366220ce1019721f24d96ef8f82bd18cff (diff)
downloademacs-4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d.tar.gz
emacs-4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d.zip
Avoid assertion violations in displaying under 'outline-minor-mode'
* src/xdisp.c (init_from_display_pos): Initialize BYTEPOS correctly, since 'init_iterator' no longer computes it from CHARPOS as needed. This fixes a change made on Mar 13, 2013. (Bug#71194)
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 6e945ed114b..1b198df4076 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3876,7 +3876,7 @@ init_from_display_pos (struct it *it, struct window *w, struct display_pos *pos)
3876 if (in_ellipses_for_invisible_text_p (pos, w)) 3876 if (in_ellipses_for_invisible_text_p (pos, w))
3877 { 3877 {
3878 --charpos; 3878 --charpos;
3879 bytepos = 0; 3879 bytepos = BYTE_TO_CHAR (charpos);
3880 } 3880 }
3881 3881
3882 /* Keep in mind: the call to reseat in init_iterator skips invisible 3882 /* Keep in mind: the call to reseat in init_iterator skips invisible