mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 04:47:34 +00:00
(set_point): When moving over invis chars,
don't screw up at end of buffer.
This commit is contained in:
parent
44a53673e8
commit
0df8950e08
1 changed files with 4 additions and 1 deletions
|
|
@ -1315,7 +1315,10 @@ set_point (position, buffer)
|
|||
{
|
||||
toprev = to;
|
||||
to = next_interval (to);
|
||||
position = to->position;
|
||||
if (NULL_INTERVAL_P (to))
|
||||
position = BUF_ZV (buffer);
|
||||
else
|
||||
position = to->position;
|
||||
}
|
||||
|
||||
buffer->text.pt = position;
|
||||
|
|
|
|||
Loading…
Reference in a new issue