Make full-screen and window bounds callbacks take a WindowContext
This commit is contained in:
parent
7394bf1cdc
commit
183b9ef809
5 changed files with 98 additions and 103 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue