LibVT: Clear the href ID by setting it to None instead of ""

This commit is contained in:
Ali Mohammad Pur 2023-10-16 21:31:15 +03:30 committed by Andrew Kaster
parent a8c7448ccb
commit f10dc9cb14
Notes: sideshowbarker 2024-07-17 04:21:32 +09:00

View file

@ -1275,8 +1275,8 @@ void Terminal::execute_osc_sequence(OscParameters parameters, u8 last_byte)
dbgln("Attempted to set href but gave too few parameters");
} else if (parameters[1].is_empty() && parameters[2].is_empty()) {
// Clear hyperlink
m_current_state.attribute.href = DeprecatedString();
m_current_state.attribute.href_id = DeprecatedString();
m_current_state.attribute.href = {};
m_current_state.attribute.href_id = {};
} else {
m_current_state.attribute.href = stringview_ify(2);
// FIXME: Respect the provided ID