crates/editor/src/blink_manager.rs 🔗
@@ -98,6 +98,7 @@ impl BlinkManager {
}
pub fn disable(&mut self, _cx: &mut ModelContext<Self>) {
+ self.visible = false;
self.enabled = false;
}
Jason Lee created
## Before
https://github.com/user-attachments/assets/affb8407-a20e-4258-a8f7-b271da5d7b77
## After
https://github.com/user-attachments/assets/654fe7b9-330a-40c8-8885-72e69fa85b0a
Release Notes:
- Hide blinking cursor when window is deactivated ([4710](https://github.com/zed-industries/zed/issues/4710))
crates/editor/src/blink_manager.rs | 1 +
crates/editor/src/editor.rs | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
@@ -98,6 +98,7 @@ impl BlinkManager {
}
pub fn disable(&mut self, _cx: &mut ModelContext<Self>) {
+ self.visible = false;
self.enabled = false;
}
@@ -1884,7 +1884,6 @@ impl Editor {
if active {
blink_manager.enable(cx);
} else {
- blink_manager.show_cursor(cx);
blink_manager.disable(cx);
}
});