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

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-04-26 01:42:21 -06:00 committed by GitHub
parent 7f229dc202
commit eb7bd0b98a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
});
});
}