Skip to content

Commit

Permalink
Don't use fancy cursors for non-vim people (#11010)
Browse files Browse the repository at this point in the history
Release Notes:

- N/A
  • Loading branch information
ConradIrwin authored Apr 25, 2024
1 parent f176e8f commit c833a7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/vim/src/editor_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c833a7e

Please sign in to comment.