diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-07-11 22:54:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 22:54:28 +0300 |
commit | 40bbdce6de8775b7bbc3f9a5731337d1dd05d195 (patch) | |
tree | bd8ed857ebd4a68744b6ca3e3557fc5fa179d281 /alacritty_terminal/src/vi_mode.rs | |
parent | e09ff0b4b0654fd6dbcf8c0bdc73fdb9ae7d8016 (diff) | |
download | alacritty-40bbdce6de8775b7bbc3f9a5731337d1dd05d195.tar.gz alacritty-40bbdce6de8775b7bbc3f9a5731337d1dd05d195.zip |
Fix hyperlinks not being keyboard actionable
This fixes a typo in 694a52b which was filtering all hyperlinks, except
only duplicated ones when opening them with keyboard.
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty_terminal/src/vi_mode.rs')
-rw-r--r-- | alacritty_terminal/src/vi_mode.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty_terminal/src/vi_mode.rs b/alacritty_terminal/src/vi_mode.rs index 7f1d40ee..0cdc6a69 100644 --- a/alacritty_terminal/src/vi_mode.rs +++ b/alacritty_terminal/src/vi_mode.rs @@ -380,13 +380,14 @@ mod tests { use crate::ansi::Handler; use crate::config::Config; + use crate::event::VoidListener; use crate::index::{Column, Line}; use crate::term::test::TermSize; use crate::term::Term; - fn term() -> Term<()> { + fn term() -> Term<VoidListener> { let size = TermSize::new(20, 20); - Term::new(&Config::default(), &size, ()) + Term::new(&Config::default(), &size, VoidListener) } #[test] @@ -493,7 +494,7 @@ mod tests { assert_eq!(cursor.point, Point::new(Line(0), Column(0))); } - fn motion_semantic_term() -> Term<()> { + fn motion_semantic_term() -> Term<VoidListener> { let mut term = term(); term.grid_mut()[Line(0)][Column(0)].c = 'x'; |