1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-24 19:03:29 +00:00

(compute_motion): Fix boundary case.

This commit is contained in:
Karl Heuer 1999-06-12 03:50:37 +00:00
parent 31d4844a6a
commit a9a679b70e

View File

@ -1418,7 +1418,9 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
/* 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