aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intervals.c b/src/intervals.c
index ce2adc375f3..024a4f31903 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1868,7 +1868,7 @@ move_if_not_intangible (position)
1868 if (! NILP (Vinhibit_point_motion_hooks)) 1868 if (! NILP (Vinhibit_point_motion_hooks))
1869 /* If intangible is inhibited, always move point to POSITION. */ 1869 /* If intangible is inhibited, always move point to POSITION. */
1870 ; 1870 ;
1871 else if (PT < position) 1871 else if (PT < position && pos < ZV)
1872 { 1872 {
1873 /* We want to move forward, so check the text before POSITION. */ 1873 /* We want to move forward, so check the text before POSITION. */
1874 1874
@@ -1884,7 +1884,7 @@ move_if_not_intangible (position)
1884 intangible_propval)) 1884 intangible_propval))
1885 pos = Fprevious_char_property_change (pos, Qnil); 1885 pos = Fprevious_char_property_change (pos, Qnil);
1886 } 1886 }
1887 else 1887 else if (pos > BEGV)
1888 { 1888 {
1889 /* We want to move backward, so check the text after POSITION. */ 1889 /* We want to move backward, so check the text after POSITION. */
1890 1890