From a77cf914ec4f763a5a9f2e17c46b0f1a1aa914b1 Mon Sep 17 00:00:00 2001 From: K Simmons Date: Tue, 19 Jul 2022 17:17:54 -0700 Subject: [PATCH] Fix failing test re mode switch in buffer search --- crates/vim/src/vim.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rs index b90dd4fcec..56e2e599d8 100644 --- a/crates/vim/src/vim.rs +++ b/crates/vim/src/vim.rs @@ -266,7 +266,7 @@ mod test { } #[gpui::test] - async fn test_buffer_search_switches_mode(cx: &mut gpui::TestAppContext) { + async fn test_buffer_search(cx: &mut gpui::TestAppContext) { let mut cx = VimTestContext::new(cx, true).await; cx.set_state( @@ -278,7 +278,8 @@ mod test { ); cx.simulate_keystroke("/"); - assert_eq!(cx.mode(), Mode::Visual { line: false }); + // We now use a weird insert mode with selection when jumping to a single line editor + assert_eq!(cx.mode(), Mode::Insert); let search_bar = cx.workspace(|workspace, cx| { workspace