Commit e08dcafd authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent 115b96bd
File mode changed from 100755 to 100644
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment