From bd8c936b00c0f17558d6f96a92e551ffe501e6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 8 May 2021 15:17:55 +0200 Subject: [PATCH] term: osc8-open: assert URI in VT struct is NULL --- terminal.c | 2 ++ 1 file changed, 2 insertions(+) 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),