aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-15 05:27:54 +0000
committerRichard M. Stallman1993-06-15 05:27:54 +0000
commit0df8950e08c052ee296aa21891931e08cb0ec759 (patch)
treefbad591a930643e9ae990bac3f1628916056c932 /src
parent44a53673e892ac18cfbf6298a2a4983f402880b8 (diff)
downloademacs-0df8950e08c052ee296aa21891931e08cb0ec759.tar.gz
emacs-0df8950e08c052ee296aa21891931e08cb0ec759.zip
(set_point): When moving over invis chars,
don't screw up at end of buffer.
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 7809c37505b..e6254cbdf6a 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1315,7 +1315,10 @@ set_point (position, buffer)
1315 { 1315 {
1316 toprev = to; 1316 toprev = to;
1317 to = next_interval (to); 1317 to = next_interval (to);
1318 position = to->position; 1318 if (NULL_INTERVAL_P (to))
1319 position = BUF_ZV (buffer);
1320 else
1321 position = to->position;
1319 } 1322 }
1320 1323
1321 buffer->text.pt = position; 1324 buffer->text.pt = position;