From c833a7e662e9509fcf18a1520259ca5d4de7b1f9 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 25 Apr 2024 14:21:01 -0600 Subject: [PATCH] Don't use fancy cursors for non-vim people (#11010) Release Notes: - N/A --- crates/vim/src/editor_events.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/vim/src/editor_events.rs b/crates/vim/src/editor_events.rs index ee5f4cde0972cdd5fb7b06a69bbf320c875bb6ca..9ddcea38520c057ff81d2292ca3326296169b861 100644 --- a/crates/vim/src/editor_events.rs +++ b/crates/vim/src/editor_events.rs @@ -42,6 +42,9 @@ fn focused(editor: View, cx: &mut WindowContext) { fn blurred(editor: View, 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