Commit 0df8950e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(set_point): When moving over invis chars,

don't screw up at end of buffer.
parent 44a53673
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment