From 4aa5eb5a429988ca6fffe4a0addb756f77a9d922 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 8 May 1998 00:08:09 +0000 Subject: [PATCH] (compute_motion): Fix previous change. --- src/indent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2