From bf30beacc28eda49d13f2c8815ee08eb570fd753 Mon Sep 17 00:00:00 2001 From: jneem Date: Mon, 28 Apr 2025 21:51:06 +0700 Subject: [PATCH] Honor default_mode in NormalBefore (#29518) Addresses [this](https://github.com/zed-industries/zed/pull/28103#issuecomment-2832038415) comment. Release Notes: - Improved default helix keybindings --- crates/vim/src/insert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vim/src/insert.rs b/crates/vim/src/insert.rs index 561ceec0a8..983ed1ef79 100644 --- a/crates/vim/src/insert.rs +++ b/crates/vim/src/insert.rs @@ -36,7 +36,7 @@ impl Vim { }); }); }); - self.switch_mode(Mode::Normal, false, window, cx); + self.switch_mode(self.default_mode(cx), false, window, cx); return; }