diff options
| author | Kim F. Storm | 2004-11-16 14:21:37 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-16 14:21:37 +0000 |
| commit | 9305b0e7958823501430967de756d0227df69cd6 (patch) | |
| tree | 28572a746673a72f94e4fca91b470edb10830e54 /src | |
| parent | b4d61105dfde4a314e5b3901f837cfbddb90e39e (diff) | |
| download | emacs-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.c | 13 |
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); |