mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -08:00
(move_if_not_intangible): Force POSITION to be between BEGV and ZV.
This commit is contained in:
parent
b3ada79133
commit
97d8f112ef
1 changed files with 4 additions and 0 deletions
|
|
@ -2275,6 +2275,10 @@ move_if_not_intangible (position)
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue