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.
This commit is contained in:
Daniel Eklöf 2021-02-13 13:44:58 +01:00
parent b934969b85
commit ffbee5ff37
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -89,6 +89,7 @@ struct composed {
struct row_uri_range {
int start;
int end;
uint64_t id;
char *uri;
};