From eb7bd0b98a138074f9f6c48a5b5aafc5195d1e89 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 26 Apr 2024 01:42:21 -0600 Subject: [PATCH] Use fewer fancy cursors even for vim users (#11041) Release Notes: - N/A --- crates/vim/src/editor_events.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/vim/src/editor_events.rs b/crates/vim/src/editor_events.rs index 9ddcea3852..b1aa44f848 100644 --- a/crates/vim/src/editor_events.rs +++ b/crates/vim/src/editor_events.rs @@ -55,7 +55,9 @@ fn blurred(editor: View, cx: &mut WindowContext) { } } editor.update(cx, |editor, cx| { - editor.set_cursor_shape(language::CursorShape::Hollow, cx); + if editor.use_modal_editing() { + editor.set_cursor_shape(language::CursorShape::Hollow, cx); + } }); }); }