Mercurial > emacs
diff src/indent.c @ 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 | a544bb3eea53 |
children | 036ab27f7ea8 |
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))) {