aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c4
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