From 4b91a1dbe97d209273290480f58480f48fa4af97 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 19 Mar 2023 18:16:28 +0300 Subject: Fix `;` character in URI OSC 8 payload The special character `;` can be not URL-encoded, thus it'll add extra parameter in the payload. Handle it joining extra parameters with the `;` as a separator. --- alacritty/src/display/hint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty/src') diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs index 202b8f97..12047011 100644 --- a/alacritty/src/display/hint.rs +++ b/alacritty/src/display/hint.rs @@ -649,8 +649,8 @@ mod tests { let mut term = mock_term("000\r\n111"); term.goto(Line(0), Column(0)); - let hyperlink_foo = Hyperlink::new(Some("1"), "foo"); - let hyperlink_bar = Hyperlink::new(Some("2"), "bar"); + let hyperlink_foo = Hyperlink::new(Some("1"), String::from("foo")); + let hyperlink_bar = Hyperlink::new(Some("2"), String::from("bar")); // Create 2 hyperlinks on the first line. term.set_hyperlink(Some(hyperlink_foo.clone())); -- cgit