vim: Fix accidental visual selection when following

This commit is contained in:
Conrad Irwin 2023-09-29 12:08:25 -06:00
parent c379a6f2fb
commit 9b7bd4e9ae

View file

@ -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);
}