changeset 21991:e80802548c11

(compute_motion): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Fri, 08 May 1998 00:08:09 +0000
parents 02b32ae7e637
children c041ffd185c7
files src/indent.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;