Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Show the cursor right away when opening opening/focusing editors

Antonio Scandurraaec8aec8009f
diff --git a/crates/editor/src/blink_manager.rs b/crates/editor/src/blink_manager.rs
index 681692f0f54..9651182bd8b 100644
--- a/crates/editor/src/blink_manager.rs
+++ b/crates/editor/src/blink_manager.rs
@@ -93,6 +93,9 @@ impl BlinkManager {
pub fn enable(&mut self, cx: &mut ModelContext<Self>) {
self.enabled = true;
+ // Set cursors as invisible and start blinking: this causes cursors
+ // to be visible during the next render.
+ self.visible = false;
self.blink_cursors(self.blink_epoch, cx);
}