From ffbee5ff372787c13e68d413173ff2e3ba270b80 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 13 Feb 2021 13:44:58 +0100 Subject: term: add an ‘id’ member to the the ‘row_uri_range’ struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit term_osc8_close() sets it from the OSC-8 ID tracked in the VT sub-struct. --- terminal.c | 1 + terminal.h | 1 + 2 files changed, 2 insertions(+) diff --git a/terminal.c b/terminal.c index 218882f0..9051c566 100644 --- a/terminal.c +++ b/terminal.c @@ -3059,6 +3059,7 @@ term_osc8_close(struct terminal *term) struct row_uri_range range = { .start = start_col, .end = end_col, + .id = term->vt.osc8.id, .uri = xstrdup(term->vt.osc8.uri), }; tll_push_back(row->extra->uri_ranges, range); diff --git a/terminal.h b/terminal.h index 733fc92d..69c7c2ea 100644 --- a/terminal.h +++ b/terminal.h @@ -89,6 +89,7 @@ struct composed { struct row_uri_range { int start; int end; + uint64_t id; char *uri; }; -- cgit v1.3