emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 4f0121f8dbe: Avoid assertion violations in displaying under 'ou


From: Eli Zaretskii
Subject: emacs-29 4f0121f8dbe: Avoid assertion violations in displaying under 'outline-minor-mode'
Date: Sat, 25 May 2024 07:25:57 -0400 (EDT)

branch: emacs-29
commit 4f0121f8dbe2ca0ec8fe2831353f01782e5e6b9d
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)
---
 src/xdisp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]