From ffbee5ff372787c13e68d413173ff2e3ba270b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 13 Feb 2021 13:44:58 +0100 Subject: [PATCH] =?UTF-8?q?term:=20add=20an=20=E2=80=98id=E2=80=99=20membe?= =?UTF-8?q?r=20to=20the=20the=20=E2=80=98row=5Furi=5Frange=E2=80=99=20stru?= =?UTF-8?q?ct?= 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; };