changeset 15554:103a6af424a8

(Fmove_to_column): Go after invis chars at the goal column.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Jun 1996 18:55:04 +0000
parents 6a77264bef21
children 5ceed3aa6a1c
files src/indent.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Fri Jun 28 17:28:58 1996 +0000
+++ b/src/indent.c	Fri Jun 28 18:55:04 1996 +0000
@@ -693,7 +693,7 @@
       col = 0;
     }
 
-  while (col < goal && pos < end)
+  while (pos < end)
     {
       while (pos == next_boundary)
 	{
@@ -702,6 +702,12 @@
 	    goto endloop;
 	}
 
+      /* Test reaching the goal column.  We do this after skipping
+	 invisible characters, so that we put point before the
+	 character on which the cursor will appear.  */
+      if (col >= goal)
+	break;
+
       c = FETCH_CHAR (pos);
       if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
 	{