Avoid calling `update_window` twice in `blurred` event handler
Antonio Scandurra
created
This was preventing us from unhooking vim when performing a rename,
which prevented typing in the rename editor.
Change summary
crates/vim/src/editor_events.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Detailed changes
@@ -35,9 +35,7 @@ fn blurred(EditorBlurred(editor): &EditorBlurred, cx: &mut AppContext) {
}
}
- cx.update_window(editor.window_id(), |cx| {
- editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
- });
+ editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
});
});
}