# HG changeset patch # User Richard M. Stallman # Date 835988104 0 # Node ID 103a6af424a81f525ebf71148d6f1a86cef34c08 # Parent 6a77264bef218930c664f49eac2708e65b3dad3f (Fmove_to_column): Go after invis chars at the goal column. diff -r 6a77264bef21 -r 103a6af424a8 src/indent.c --- 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))) {