Fix enter in search

This commit is contained in:
Conrad Irwin 2023-07-20 19:41:38 -06:00
parent 4557adf693
commit 7337910034
5 changed files with 35 additions and 8 deletions

View file

@ -13,7 +13,7 @@ fn focused(EditorFocused(editor): &EditorFocused, cx: &mut AppContext) {
cx.update_window(previously_active_editor.window_id(), |cx| {
Vim::update(cx, |vim, cx| {
vim.update_active_editor(cx, |previously_active_editor, cx| {
Vim::unhook_vim_settings(previously_active_editor, cx);
vim.unhook_vim_settings(previously_active_editor, cx)
});
});
});
@ -35,7 +35,7 @@ fn blurred(EditorBlurred(editor): &EditorBlurred, cx: &mut AppContext) {
}
}
editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
editor.update(cx, |editor, cx| vim.unhook_vim_settings(editor, cx))
});
});
}