diff options
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'; |