Show the cursor right away when opening opening/focusing editors

This commit is contained in:
Antonio Scandurra
2022-11-04 10:18:47 +01:00
parent 5bcf9916c9
commit aec8aec800
+3
View File
@@ -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);
}