Mercurial > emacs
diff src/indent.c @ 58317:ae080fc5eb58
(Fvertical_motion): Fix last change.
| author | Kim F. Storm <storm@cua.dk> |
|---|---|
| date | Fri, 19 Nov 2004 09:44:14 +0000 |
| parents | 5358f62b0795 |
| children | 60b3e92b3dd4 |
line wrap: on
line diff
--- a/src/indent.c Fri Nov 19 09:43:27 2004 +0000 +++ b/src/indent.c Fri Nov 19 09:44:14 2004 +0000 @@ -2084,7 +2084,7 @@ /* Move back if we got too far. This may happen if truncate-lines is on and PT is beyond right margin. */ - if (IT_CHARPOS (it) > PT && XINT (lines) > 0) + if (IT_CHARPOS (it) > PT && it.vpos > 0 && XINT (lines) > 0) move_it_by_lines (&it, -1, 0); it.vpos = 0;
