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:
parent
31d4844a6a
commit
a9a679b70e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user