From: Richard M. Stallman Date: Sun, 3 May 1998 04:33:27 +0000 (+0000) Subject: (compute_motion): When invisible text cross TO, X-Git-Tag: emacs-20.3~1158 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8cb089b3938c8dd784c54945099555f1761e28a;p=emacs.git (compute_motion): When invisible text cross TO, return TO, not the start of the invisible text. --- 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) {