]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 8 May 1998 00:08:09 +0000 (00:08 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 8 May 1998 00:08:09 +0000 (00:08 +0000)
src/indent.c

index fa1dc0a29321c32bf745ab729f8794630bbc9139..8f29b9cc24f8508227e2bce3a327087b977e4261 100644 (file)
@@ -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;