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.

Use fewer fancy cursors even for vim users (#11041)

Conrad Irwineb7bd0b98a13
diff --git a/crates/vim/src/editor_events.rs b/crates/vim/src/editor_events.rs
index 9ddcea38520..b1aa44f8481 100644
--- a/crates/vim/src/editor_events.rs
+++ b/crates/vim/src/editor_events.rs
@@ -55,7 +55,9 @@ fn blurred(editor: View<Editor>, 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);
+ }
});
});
}