aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-11-16 14:21:37 +0000
committerKim F. Storm2004-11-16 14:21:37 +0000
commit9305b0e7958823501430967de756d0227df69cd6 (patch)
tree28572a746673a72f94e4fca91b470edb10830e54 /src
parentb4d61105dfde4a314e5b3901f837cfbddb90e39e (diff)
downloademacs-9305b0e7958823501430967de756d0227df69cd6.tar.gz
emacs-9305b0e7958823501430967de756d0227df69cd6.zip
(Fvertical_motion): Fix last change. Only reseat when
moving backwards.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/indent.c b/src/indent.c
index 603c0afe38c..559b69d9311 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2070,10 +2070,15 @@ whether or not it is currently displayed in some window. */)
2070 we end up with the iterator placed at where it thinks X is 0, 2070 we end up with the iterator placed at where it thinks X is 0,
2071 while the end position is really at some X > 0, the same X that 2071 while the end position is really at some X > 0, the same X that
2072 PT had. */ 2072 PT had. */
2073 reseat_at_previous_visible_line_start (&it); 2073 if (XINT (lines) < 0)
2074 it.current_x = it.hpos = 0; 2074 {
2075 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); 2075 reseat_at_previous_visible_line_start (&it);
2076 it.vpos = 0; 2076 it.current_x = it.hpos = 0;
2077 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
2078 it.vpos = 0;
2079 }
2080 else
2081 move_it_by_lines (&it, 0, 0);
2077 2082
2078 if (XINT (lines) != 0) 2083 if (XINT (lines) != 0)
2079 move_it_by_lines (&it, XINT (lines), 0); 2084 move_it_by_lines (&it, XINT (lines), 0);