(set_point): When moving over invis chars,

don't screw up at end of buffer.
This commit is contained in:
Richard M. Stallman 1993-06-15 05:27:54 +00:00
parent 44a53673e8
commit 0df8950e08

View file

@ -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;