aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 86658ea711d..79988829ed7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7258,11 +7258,12 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
7258 { 7258 {
7259 it->continuation_lines_width += it->last_visible_x; 7259 it->continuation_lines_width += it->last_visible_x;
7260 /* When moving by vpos, ensure that the iterator really 7260 /* When moving by vpos, ensure that the iterator really
7261 advances to the next line (bug#847). Fixme: do we 7261 advances to the next line (bug#847, bug#969). Fixme:
7262 need to do this in other circumstances? */ 7262 do we need to do this in other circumstances? */
7263 if ((op & MOVE_TO_VPOS) 7263 if (it->current_x != it->last_visible_x
7264 && !(op & (MOVE_TO_X | MOVE_TO_POS))) 7264 && (op & MOVE_TO_VPOS)
7265 set_iterator_to_next (it, 0); 7265 && !(op & (MOVE_TO_X | MOVE_TO_POS)))
7266 set_iterator_to_next (it, 0);
7266 } 7267 }
7267 else 7268 else
7268 it->continuation_lines_width += it->current_x; 7269 it->continuation_lines_width += it->current_x;