diff options
| author | Richard M. Stallman | 2004-08-16 22:52:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-08-16 22:52:29 +0000 |
| commit | 97d8f112efe9d0b1d5e6f56a6f6eaaec1900df9f (patch) | |
| tree | 6841e3cd94049351de4b285e7ce4a276af46e4be /src | |
| parent | b3ada79133ad045690d1b48a40cbddb40d2c612a (diff) | |
| download | emacs-97d8f112efe9d0b1d5e6f56a6f6eaaec1900df9f.tar.gz emacs-97d8f112efe9d0b1d5e6f56a6f6eaaec1900df9f.zip | |
(move_if_not_intangible): Force POSITION to be between BEGV and ZV.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intervals.c b/src/intervals.c index 33ef9a34177..a822dafefcf 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -2275,6 +2275,10 @@ move_if_not_intangible (position) | |||
| 2275 | pos = Fnext_char_property_change (pos, Qnil); | 2275 | pos = Fnext_char_property_change (pos, Qnil); |
| 2276 | 2276 | ||
| 2277 | } | 2277 | } |
| 2278 | else if (position < BEGV) | ||
| 2279 | position = BEGV; | ||
| 2280 | else if (position > ZV) | ||
| 2281 | position = ZV; | ||
| 2278 | 2282 | ||
| 2279 | /* If the whole stretch between PT and POSITION isn't intangible, | 2283 | /* If the whole stretch between PT and POSITION isn't intangible, |
| 2280 | try moving to POSITION (which means we actually move farther | 2284 | try moving to POSITION (which means we actually move farther |