Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Disrupt blink for immediate feedback on cursor shape changes (#14177)
Omer Tuchfeld3541a1175ff3
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex ddeb8e3addd..595593e843d 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -2163,6 +2163,10 @@ impl Editor {pub fn set_cursor_shape(&mut self, cursor_shape: CursorShape, cx: &mut ViewContext<Self>) {self.cursor_shape = cursor_shape;++ // Disrupt blink for immediate user feedback that the cursor shape has changed+ self.blink_manager.update(cx, BlinkManager::show_cursor);+cx.notify();}