# HG changeset patch # User Karl Heuer # Date 929159437 0 # Node ID a3ddcd017066dadabb50b52d542140cfe0a66eaa # Parent 487fdbc8de0fc105443c59e1447e19d7a8119368 (compute_motion): Fix boundary case. diff -r 487fdbc8de0f -r a3ddcd017066 src/indent.c --- a/src/indent.c Sat Jun 12 03:44:31 1999 +0000 +++ b/src/indent.c Sat Jun 12 03:50:37 1999 +0000 @@ -1418,7 +1418,9 @@ /* Skip any number of invisible lines all at once */ do { - pos = find_before_next_newline (pos, to, 1) + 1; + pos = find_before_next_newline (pos, to, 1); + if (pos < to) + pos++; pos_byte = CHAR_TO_BYTE (pos); } while (pos < to