projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bf6583
)
Avoid assertion violations in displaying under 'outline-minor-mode'
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 25 May 2024 11:23:43 +0000
(14:23 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 25 May 2024 11:23:43 +0000
(14:23 +0300)
* 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
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 6e945ed114b7095e3c5d1c619353c66ae3e9c7f3..1b198df40767e20a285db18a4b55443a055f6d31 100644
(file)
--- 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