Make full-screen and window bounds callbacks take a WindowContext

This commit is contained in:
Antonio Scandurra 2023-04-14 11:56:31 +02:00
parent 7394bf1cdc
commit 183b9ef809
5 changed files with 98 additions and 103 deletions

View file

@ -31,11 +31,9 @@ impl<'a> VimTestContext<'a> {
});
});
let window_id = cx.window_id;
// Setup search toolbars and keypress hook
cx.update_workspace(|workspace, cx| {
observe_keystrokes(window_id, cx);
observe_keystrokes(cx);
workspace.active_pane().update(cx, |pane, cx| {
pane.toolbar().update(cx, |toolbar, cx| {
let buffer_search_bar = cx.add_view(BufferSearchBar::new);