diff options
| author | Richard M. Stallman | 1997-05-31 08:34:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-31 08:34:13 +0000 |
| commit | 5509c7ff85ea8d894338e507ab9c981cae1e5941 (patch) | |
| tree | 5e8c8c8c828f07546b225d34f6e694b2eb4419f0 /src | |
| parent | b0eba9913232b3da6075541591698ce27f48bde9 (diff) | |
| download | emacs-5509c7ff85ea8d894338e507ab9c981cae1e5941.tar.gz emacs-5509c7ff85ea8d894338e507ab9c981cae1e5941.zip | |
(move_if_not_intangible): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 4 |
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 | ||