mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 18:00:40 -08:00
Fix bug #16961 with visual-order cursor movement and word-wrap.
src/xdisp.c (Fmove_point_visually): When under word-wrap, accept also return value of MOVE_POS_MATCH_OR_ZV from move_it_in_display_line_to, when moving from beginning of line to point's position.
This commit is contained in:
parent
1920914a09
commit
b646ea12bd
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2014-03-07 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* xdisp.c (Fmove_point_visually): When under word-wrap, accept
|
||||
also return value of MOVE_POS_MATCH_OR_ZV from
|
||||
move_it_in_display_line_to, when moving from beginning of line to
|
||||
point's position. (Bug#16961)
|
||||
|
||||
2014-03-07 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* buffer.c (Vbuffer_list_update_hook): Doc-string fix.
|
||||
|
|
|
|||
|
|
@ -20895,7 +20895,12 @@ Value is the new character position of point. */)
|
|||
new_pos = it.current.pos;
|
||||
|
||||
while (it.current_x + it.pixel_width <= target_x
|
||||
&& rc == MOVE_X_REACHED)
|
||||
&& (rc == MOVE_X_REACHED
|
||||
/* Under word-wrap, move_it_in_display_line_to
|
||||
stops at correct coordinates, but sometimes
|
||||
returns MOVE_POS_MATCH_OR_ZV. */
|
||||
|| (it.line_wrap == WORD_WRAP
|
||||
&& rc == MOVE_POS_MATCH_OR_ZV)))
|
||||
{
|
||||
int new_x = it.current_x + it.pixel_width;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue