mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
vim: Fix accidental visual selection when following (#3068)
Release Notes: - vim: Fix a bug where following could put you in visual mode
This commit is contained in:
commit
d9c1cf9874
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue