# HG changeset patch
# User Kenichi Handa <handa@m17n.org>
# Date 894586089 0
# Node ID e80802548c11fbaff83ad728be1d1320a1b6f6d5
# Parent  02b32ae7e6373b0e420434e5c1e6dc4d3211c6eb
(compute_motion): Fix previous change.

diff -r 02b32ae7e637 -r e80802548c11 src/indent.c
--- a/src/indent.c	Thu May 07 23:31:26 1998 +0000
+++ b/src/indent.c	Fri May 08 00:08:09 1998 +0000
@@ -1225,7 +1225,7 @@
       /* 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;