]> code.delx.au - gnu-emacs/commitdiff
(Fvertical_motion): Fix last change.
authorKim F. Storm <storm@cua.dk>
Fri, 19 Nov 2004 09:44:14 +0000 (09:44 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 19 Nov 2004 09:44:14 +0000 (09:44 +0000)
src/indent.c

index 0b73751a5f74a3bf3c0997cfb1e1116407b794b6..f4a383b6d07dd3a06655c1aca3b1e5816138762a 100644 (file)
@@ -2084,7 +2084,7 @@ whether or not it is currently displayed in some window.  */)
 
       /* 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;