diff options
| author | Chong Yidong | 2008-09-30 16:54:41 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-09-30 16:54:41 +0000 |
| commit | 56eb03e83192bf0e7049789b6f377d8a7254954e (patch) | |
| tree | b577c0a81c821f618f2eafc27c020292372cc9e5 | |
| parent | f44452f8922426098e903356b3599a04b84e9853 (diff) | |
| download | emacs-56eb03e83192bf0e7049789b6f377d8a7254954e.tar.gz emacs-56eb03e83192bf0e7049789b6f377d8a7254954e.zip | |
(move_it_to): Don't advance the iterator if the last tab in a
continued line coincides with a line beginning.
| -rw-r--r-- | src/xdisp.c | 11 |
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; |