Don't use fancy cursors for non-vim people (#11010)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-04-25 14:21:01 -06:00 committed by GitHub
parent f176e8f0e4
commit c833a7e662
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,9 @@ fn focused(editor: View<Editor>, cx: &mut WindowContext) {
fn blurred(editor: View<Editor>, cx: &mut WindowContext) {
Vim::update(cx, |vim, cx| {
if !vim.enabled {
return;
}
if let Some(previous_editor) = vim.active_editor.clone() {
vim.stop_recording_immediately(NormalBefore.boxed_clone());
if previous_editor