aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-13 12:44:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-21 19:14:52 +0000
commitffbee5ff372787c13e68d413173ff2e3ba270b80 (patch)
tree0be7574bf0d3cfe7335ce80b8ba852962c7038e4
parentterm: add ‘id’ parameter to term_osc8_open() (diff)
term: add an ‘id’ member to the the ‘row_uri_range’ struct
term_osc8_close() sets it from the OSC-8 ID tracked in the VT sub-struct.
-rw-r--r--terminal.c1
-rw-r--r--terminal.h1
2 files changed, 2 insertions, 0 deletions
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;
};