aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-03-08 15:18:43 +0200
committerEli Zaretskii2014-03-08 15:18:43 +0200
commit281ae1808d7b470e0aa11858ea0b3100d20d1694 (patch)
treef7b7c1f63ea0cce10494cedfb7d670a92cbc490a /src
parent2c65ad215a5459a4d5bbb9f35627a51dcbe3ae55 (diff)
downloademacs-281ae1808d7b470e0aa11858ea0b3100d20d1694.tar.gz
emacs-281ae1808d7b470e0aa11858ea0b3100d20d1694.zip
src/xdisp.c (Fmove_point_visually): Fix previous change.
Fixes: debbugs:16961
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 62915438e50..0216aaea116 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20880,7 +20880,10 @@ Value is the new character position of point. */)
20880 SAVE_IT (it2, it, it_data); 20880 SAVE_IT (it2, it, it_data);
20881 move_it_in_display_line_to (&it, ZV, target_x, 20881 move_it_in_display_line_to (&it, ZV, target_x,
20882 MOVE_TO_POS | MOVE_TO_X); 20882 MOVE_TO_POS | MOVE_TO_X);
20883 target_x = it.current_x - 1; 20883 /* If we arrived at target_x, that _is_ the last
20884 character on the previous line. */
20885 if (it.current_x != target_x)
20886 target_x = it.current_x - 1;
20884 RESTORE_IT (&it, &it2, it_data); 20887 RESTORE_IT (&it, &it2, it_data);
20885 } 20888 }
20886 } 20889 }