term: add ‘id’ parameter to term_osc8_open()

The current OSC-8 URL’s ID is now tracked along with the URI itself,
and its starting point.
This commit is contained in:
Daniel Eklöf 2021-02-13 13:44:07 +01:00
parent ecbfc2bbe9
commit b934969b85
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 7 additions and 4 deletions

2
osc.c
View file

@ -433,7 +433,7 @@ osc_uri(struct terminal *term, char *string)
if (uri[0] == '\0')
term_osc8_close(term);
else
term_osc8_open(term, uri);
term_osc8_open(term, id, uri);
}
static void