Mercurial > emacs
diff src/fns.c @ 25607:e1f5592218c1
(Fbase64_decode_region): Don't place point outside of the
current accessible portion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 08 Sep 1999 07:54:18 +0000 |
parents | b01b1c94f6ee |
children | f25a14690a18 |
line wrap: on
line diff
--- a/src/fns.c Wed Sep 08 07:50:19 1999 +0000 +++ b/src/fns.c Wed Sep 08 07:54:18 1999 +0000 @@ -3140,7 +3140,7 @@ old_pos += inserted_chars - (XFASTINT (end) - XFASTINT (beg)); else if (old_pos > XFASTINT (beg)) old_pos = XFASTINT (beg); - SET_PT (old_pos); + SET_PT (old_pos > ZV ? ZV : old_pos); return make_number (inserted_chars); }