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
|
if editor_mode == EditorMode::Full
|
||||||
&& !newest_selection_empty
|
&& !newest_selection_empty
|
||||||
&& self.state().mode == Mode::Normal
|
&& 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);
|
self.switch_mode(Mode::Visual, true, cx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue