vim: Fix accidental visual selection when following
This commit is contained in:
parent
c379a6f2fb
commit
9b7bd4e9ae
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