changeset 21919:0c3d6e2c4176

(compute_motion): When invisible text cross TO, return TO, not the start of the invisible text.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 May 1998 04:33:27 +0000
parents 2abd8542d6dd
children eeb4e3a385db
files src/indent.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Sun May 03 04:32:41 1998 +0000
+++ b/src/indent.c	Sun May 03 04:33:27 1998 +0000
@@ -1121,7 +1121,10 @@
 	  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)
 	    {