Avoid switching to visual mode when following in vim mode

Co-authored-by: Keith Simmons <keith@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-05-26 12:47:16 -07:00 committed by Keith Simmons
parent c53412efcb
commit 42cd2ae142
2 changed files with 10 additions and 4 deletions

View file

@ -1025,6 +1025,10 @@ impl Editor {
self.buffer.read(cx).replica_id()
}
pub fn leader_replica_id(&self) -> Option<ReplicaId> {
self.leader_replica_id
}
pub fn buffer(&self) -> &ModelHandle<MultiBuffer> {
&self.buffer
}