From: Kenichi Handa Date: Fri, 8 May 1998 00:08:09 +0000 (+0000) Subject: (compute_motion): Fix previous change. X-Git-Tag: emacs-20.3~1086 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4aa5eb5a429988ca6fffe4a0addb756f77a9d922;p=emacs.git (compute_motion): Fix previous change. --- diff --git a/src/indent.c b/src/indent.c index fa1dc0a2932..8f29b9cc24f 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1225,7 +1225,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, /* Stop if past the target buffer position or screen position. */ if (pos > to || vpos > tovpos - || vpos == tovpos && hpos > tohpos) + || vpos == tovpos && tohpos >= 0 && hpos > tohpos) { /* Go back to the previous position. */ pos = prev_pos;