From: Kim F. Storm Date: Fri, 19 Nov 2004 09:44:14 +0000 (+0000) Subject: (Fvertical_motion): Fix last change. X-Git-Tag: ttn-vms-21-2-B4~3848 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=97564b7ef490505baef1651c0ee35c8d52891c31;p=emacs.git (Fvertical_motion): Fix last change. --- diff --git a/src/indent.c b/src/indent.c index 0b73751a5f7..f4a383b6d07 100644 --- a/src/indent.c +++ b/src/indent.c @@ -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;