summaryrefslogtreecommitdiff
path: root/src/snapshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/snapshot.c')
-rw-r--r--src/snapshot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/snapshot.c b/src/snapshot.c
index 8726265..78c66b0 100644
--- a/src/snapshot.c
+++ b/src/snapshot.c
@@ -318,7 +318,8 @@ static bool term_snapshot_update_inner(struct term_snapshot *s, struct term *t)
s->arena_cap = cap;
}
- term_selection_view_spans(t, c0, c1);
+ if (!term_selection_view_spans(t, c0, c1))
+ goto done;
p.all = all;
p.scrolled = scrolled;
apply(s, t, &p);