Fix bug where cursors became invisible if replaying was interrupted

This commit is contained in:
Conrad Irwin 2023-09-11 18:48:24 -06:00
parent 76d55244a1
commit c2c521015a
2 changed files with 25 additions and 11 deletions

View file

@ -34,7 +34,9 @@ fn focused(EditorFocused(editor): &EditorFocused, cx: &mut AppContext) {
fn blurred(EditorBlurred(editor): &EditorBlurred, cx: &mut AppContext) {
editor.window().update(cx, |cx| {
Vim::update(cx, |vim, cx| {
vim.clear_operator(cx);
vim.workspace_state.recording = false;
vim.workspace_state.recorded_actions.clear();
if let Some(previous_editor) = vim.active_editor.clone() {
if previous_editor == editor.clone() {
vim.active_editor = None;