changeset 58317:ae080fc5eb58

(Fvertical_motion): Fix last change.
author Kim F. Storm <storm@cua.dk>
date Fri, 19 Nov 2004 09:44:14 +0000
parents dc25702fc796
children f748a7c91b98
files src/indent.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;