mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
build fix
This commit is contained in:
parent
690ea57211
commit
049149320c
2 changed files with 1 additions and 8 deletions
|
@ -161,13 +161,6 @@ impl Dimensions for TerminalSize {
|
|||
fn columns(&self) -> usize {
|
||||
self.num_columns()
|
||||
}
|
||||
|
||||
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
cx.emit(Event::Activate);
|
||||
cx.defer(|view, cx| {
|
||||
cx.focus(view.content.handle());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
|
|
|
@ -152,7 +152,7 @@ impl View for TerminalView {
|
|||
}
|
||||
}
|
||||
|
||||
fn on_focus(&mut self, cx: &mut ViewContext<Self>) {
|
||||
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
cx.emit(Event::Activate);
|
||||
cx.defer(|view, cx| {
|
||||
cx.focus(view.content.handle());
|
||||
|
|
Loading…
Reference in a new issue