summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-05-25 14:23:43 +0300
committerEli Zaretskii <eliz@gnu.org>2024-05-25 14:23:43 +0300
commit4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d (patch)
treec447df6696f8cb4390616529353406047bc6f498
parent1bf658366220ce1019721f24d96ef8f82bd18cff (diff)
downloademacs-4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d.tar.gz
emacs-4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d.tar.bz2
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)
-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)
if (in_ellipses_for_invisible_text_p (pos, w))
{
--charpos;
- bytepos = 0;
+ bytepos = BYTE_TO_CHAR (charpos);
}
/* Keep in mind: the call to reseat in init_iterator skips invisible