From 905fbacbc7dd7c3b0b244dd85b678e6797f800ed Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sat, 4 Jun 2022 15:01:43 -0700 Subject: [PATCH] vim: Avoid collapsing selections on editor creation when vim_mode is disabled --- crates/vim/src/vim.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rs index 89647b56e2..2f18d510d8 100644 --- a/crates/vim/src/vim.rs +++ b/crates/vim/src/vim.rs @@ -157,7 +157,7 @@ impl Vim { map.clip_point(selection.head(), Bias::Left), selection.goal, ); - if state.empty_selections_only() { + if self.enabled && state.empty_selections_only() { selection.collapse_to(selection.head(), selection.goal) } });