Mercurial > emacs
diff src/intervals.c @ 56693:d66d7e7354e3
(move_if_not_intangible): Force POSITION to be between BEGV and ZV.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 16 Aug 2004 22:52:29 +0000 |
parents | 7bb86df9311f |
children | a8fa7c632ee4 d8411455de48 |
line wrap: on
line diff
--- a/src/intervals.c Mon Aug 16 22:50:44 2004 +0000 +++ b/src/intervals.c Mon Aug 16 22:52:29 2004 +0000 @@ -2275,6 +2275,10 @@ pos = Fnext_char_property_change (pos, Qnil); } + else if (position < BEGV) + position = BEGV; + else if (position > ZV) + position = ZV; /* If the whole stretch between PT and POSITION isn't intangible, try moving to POSITION (which means we actually move farther