aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b8e08a30e1c..1513d4a9a87 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20895,7 +20895,12 @@ Value is the new character position of point. */)
20895 new_pos = it.current.pos; 20895 new_pos = it.current.pos;
20896 20896
20897 while (it.current_x + it.pixel_width <= target_x 20897 while (it.current_x + it.pixel_width <= target_x
20898 && rc == MOVE_X_REACHED) 20898 && (rc == MOVE_X_REACHED
20899 /* Under word-wrap, move_it_in_display_line_to
20900 stops at correct coordinates, but sometimes
20901 returns MOVE_POS_MATCH_OR_ZV. */
20902 || (it.line_wrap == WORD_WRAP
20903 && rc == MOVE_POS_MATCH_OR_ZV)))
20899 { 20904 {
20900 int new_x = it.current_x + it.pixel_width; 20905 int new_x = it.current_x + it.pixel_width;
20901 20906