Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: set cursor to hollow-block if editor loses focus (#10995)

Thorsten Ball0d6fb08b67e2
diff --git a/crates/vim/src/editor_events.rs b/crates/vim/src/editor_events.rs
index 3fccf2eba19..ee5f4cde097 100644
--- a/crates/vim/src/editor_events.rs
+++ b/crates/vim/src/editor_events.rs
@@ -51,6 +51,9 @@ fn blurred(editor: View<Editor>, cx: &mut WindowContext) {
vim.clear_operator(cx);
}
}
+ editor.update(cx, |editor, cx| {
+ editor.set_cursor_shape(language::CursorShape::Hollow, cx);
+ });
});
}