mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Hide blinking cursor when window is deactivated (#15408)
## 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))
This commit is contained in:
parent
6f0655810e
commit
0c8b17d252
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user