aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/hint.rs
diff options
context:
space:
mode:
authorAnhad Singh <62820092+Andy-Python-Programmer@users.noreply.github.com>2023-05-24 06:35:58 +1000
committerGitHub <noreply@github.com>2023-05-23 20:35:58 +0000
commitcb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (patch)
treee8c5315bb620e6d4e1564dfd6825303b498a3d6d /alacritty/src/display/hint.rs
parentf0379f2da751e81ba05bbf65ecb5e59590f39be4 (diff)
downloadr-alacritty-cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7.tar.gz
r-alacritty-cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7.tar.bz2
r-alacritty-cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7.zip
Switch to VTE's built-in ansi feature
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty/src/display/hint.rs')
-rw-r--r--alacritty/src/display/hint.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs
index 12047011..c30a88c5 100644
--- a/alacritty/src/display/hint.rs
+++ b/alacritty/src/display/hint.rs
@@ -647,25 +647,25 @@ mod tests {
#[test]
fn collect_unique_hyperlinks() {
let mut term = mock_term("000\r\n111");
- term.goto(Line(0), Column(0));
+ term.goto(0, 0);
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()));
+ term.set_hyperlink(Some(hyperlink_foo.clone().into()));
term.input('b');
term.input('a');
- term.set_hyperlink(Some(hyperlink_bar.clone()));
+ term.set_hyperlink(Some(hyperlink_bar.clone().into()));
term.input('r');
- term.set_hyperlink(Some(hyperlink_foo.clone()));
- term.goto(Line(1), Column(0));
+ term.set_hyperlink(Some(hyperlink_foo.clone().into()));
+ term.goto(1, 0);
// Ditto for the second line.
- term.set_hyperlink(Some(hyperlink_foo));
+ term.set_hyperlink(Some(hyperlink_foo.into()));
term.input('b');
term.input('a');
- term.set_hyperlink(Some(hyperlink_bar));
+ term.set_hyperlink(Some(hyperlink_bar.into()));
term.input('r');
term.set_hyperlink(None);