Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Fix accidental visual selection when following
Conrad Irwin9b7bd4e9ae10
diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rsindex 6ff997a1616..65410a460eb 100644--- a/crates/vim/src/vim.rs+++ b/crates/vim/src/vim.rs@@ -195,6 +195,9 @@ impl Vim {if editor_mode == EditorMode::Full&& !newest_selection_empty&& self.state().mode == Mode::Normal+ // if leader_replica_id is set, then you're following someone else's cursor+ // don't switch vim mode.+ && editor.leader_replica_id().is_none(){self.switch_mode(Mode::Visual, true, cx);}