Show the cursor right away when opening opening/focusing editors

This commit is contained in:
Antonio Scandurra 2022-11-02 14:42:17 +01:00
parent 5bcf9916c9
commit aec8aec800

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);
}