]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): When invisible text cross TO,
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 May 1998 04:33:27 +0000 (04:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 May 1998 04:33:27 +0000 (04:33 +0000)
return TO, not the start of the invisible text.

src/indent.c

index 4d4f4b4b0cae0deba9bcecfcc5eb83cb726ffffa..639cfdae818382de925fa2d9ee20d8a95b4255f4 100644 (file)
@@ -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)
            {