osc-8: don't log URL + ID when closing

This commit is contained in:
Daniel Eklöf 2026-02-02 11:19:07 +01:00
parent 6fbb9b7d3b
commit 0bf193ef81
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

8
osc.c
View file

@ -525,12 +525,14 @@ osc_uri(struct terminal *term, char *string)
id = sdbm_hash(value);
}
LOG_DBG("OSC-8: URL=%s, id=%" PRIu64, uri, id);
if (uri[0] == '\0')
if (uri[0] == '\0') {
LOG_DBG("OSC-8: close");
term_osc8_close(term);
else
} else {
LOG_DBG("OSC-8: URL=%s, id=%" PRIu64, uri, id);
term_osc8_open(term, id, uri);
}
}
static void