mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-25 19:11:56 +00:00
Fix a crash in vertical-motion.
src/xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it only under bidi iteration.
This commit is contained in:
parent
115b96bdb5
commit
e08dcafd83
0
build-aux/move-if-change
Executable file → Normal file
0
build-aux/move-if-change
Executable file → Normal file
@ -1,3 +1,8 @@
|
||||
2011-09-07 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it
|
||||
only under bidi iteration.
|
||||
|
||||
2011-09-07 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* gtkutil.c (xg_make_tool_item): Insert comment about eventbox.
|
||||
|
@ -8116,7 +8116,8 @@ move_it_in_display_line_to (struct it *it,
|
||||
&& !saw_smaller_pos
|
||||
&& IT_CHARPOS (*it) > to_charpos))
|
||||
{
|
||||
if (!at_eob_p && IT_CHARPOS (ppos_it) < ZV)
|
||||
if (it->bidi_p
|
||||
&& !at_eob_p && IT_CHARPOS (ppos_it) < ZV)
|
||||
RESTORE_IT (it, &ppos_it, ppos_data);
|
||||
result = MOVE_POS_MATCH_OR_ZV;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user