diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-03-19 18:16:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 18:16:28 +0300 |
commit | 4b91a1dbe97d209273290480f58480f48fa4af97 (patch) | |
tree | 982b0782d1326667c7f522fcfefef6db9df0616c /alacritty/src | |
parent | 2377c0a7280f31ccc46953c462823ee3a1083af5 (diff) | |
download | r-alacritty-4b91a1dbe97d209273290480f58480f48fa4af97.tar.gz r-alacritty-4b91a1dbe97d209273290480f58480f48fa4af97.tar.bz2 r-alacritty-4b91a1dbe97d209273290480f58480f48fa4af97.zip |
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.
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/display/hint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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())); |