mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix vertical cursor motion in Speedbar frames under bidi display.
src/xdisp.c (move_it_in_display_line_to): Fix vertical motion with bidi redisplay when a line includes both an image and is truncated.
This commit is contained in:
parent
75c68aa1b6
commit
aa4b6df690
2 changed files with 21 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2011-07-15 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* xdisp.c (move_it_in_display_line_to): Fix vertical motion with
|
||||
bidi redisplay when a line includes both an image and is
|
||||
truncated.
|
||||
|
||||
2011-07-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Fix minor problems found by static checking.
|
||||
|
|
|
|||
16
src/xdisp.c
16
src/xdisp.c
|
|
@ -7928,7 +7928,14 @@ move_it_in_display_line_to (struct it *it,
|
|||
|| IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
|
||||
{
|
||||
if (!get_next_display_element (it)
|
||||
|| BUFFER_POS_REACHED_P ())
|
||||
|| BUFFER_POS_REACHED_P ()
|
||||
/* If we are past TO_CHARPOS, but never saw any
|
||||
character positions smaller than TO_CHARPOS,
|
||||
return MOVE_POS_MATCH_OR_ZV, like the
|
||||
unidirectional display did. */
|
||||
|| ((op & MOVE_TO_POS) != 0
|
||||
&& !saw_smaller_pos
|
||||
&& IT_CHARPOS (*it) > to_charpos))
|
||||
{
|
||||
result = MOVE_POS_MATCH_OR_ZV;
|
||||
break;
|
||||
|
|
@ -7939,6 +7946,13 @@ move_it_in_display_line_to (struct it *it,
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if ((op & MOVE_TO_POS) != 0
|
||||
&& !saw_smaller_pos
|
||||
&& IT_CHARPOS (*it) > to_charpos)
|
||||
{
|
||||
result = MOVE_POS_MATCH_OR_ZV;
|
||||
break;
|
||||
}
|
||||
result = MOVE_LINE_TRUNCATED;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue