aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;