From e8cb089b3938c8dd784c54945099555f1761e28a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 3 May 1998 04:33:27 +0000 Subject: [PATCH] (compute_motion): When invisible text cross TO, return TO, not the start of the invisible text. --- src/indent.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/indent.c b/src/indent.c index 4d4f4b4b0ca..639cfdae818 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1121,7 +1121,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, newpos = skip_invisible (pos, &next_boundary, to, window); if (newpos >= to) - goto after_loop; + { + pos = min (to, newpos); + goto after_loop; + } if (newpos != pos_here) { -- 2.39.5