Don't show local cursors when editor is not focused
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
4f27049305
commit
5ac39aa7cd
1 changed files with 1 additions and 1 deletions
|
@ -5520,7 +5520,7 @@ impl Editor {
|
|||
}
|
||||
|
||||
pub fn show_local_cursors(&self) -> bool {
|
||||
self.show_local_cursors
|
||||
self.show_local_cursors && self.focused
|
||||
}
|
||||
|
||||
fn on_buffer_changed(&mut self, _: ModelHandle<MultiBuffer>, cx: &mut ViewContext<Self>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue