aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-08 13:17:55 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-08 18:27:12 +0000
commitbd8c936b00c0f17558d6f96a92e551ffe501e6af (patch)
tree8053aa7f81d8f285fb645fcb3894aa7cf391fbe6
parentMerge branch 'simplify-parse_section_colors' (diff)
term: osc8-open: assert URI in VT struct is NULL
-rw-r--r--terminal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index ab82b75b..6ec37406 100644
--- a/terminal.c
+++ b/terminal.c
@@ -3070,6 +3070,8 @@ term_osc8_open(struct terminal *term, uint64_t id, const char *uri)
term_osc8_close(term);
}
+ xassert(term->vt.osc8.uri == NULL);
+
term->vt.osc8.begin = (struct coord){
.col = term->grid->cursor.point.col,
.row = grid_row_absolute(term->grid, term->grid->cursor.point.row),