# HG changeset patch # User Kim F. Storm # Date 1100857454 0 # Node ID ae080fc5eb58338038e96de404ebfa4532adce4d # Parent dc25702fc796da7e9bcea09f9d056f8ede47b844 (Fvertical_motion): Fix last change. diff -r dc25702fc796 -r ae080fc5eb58 src/indent.c --- 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;