Mercurial > emacs
changeset 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 | 7ab723e4a21a |
children | 1cdab17df2b3 |
files | src/fns.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); }