Merge pull request #2126 from zed-industries/731-make-cursor-visible-immediately

Focus the editor when activating previous pane
This commit is contained in:
Petros Amoiridis 2023-02-03 10:12:34 +02:00 committed by GitHub
commit 433f284571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -4917,6 +4917,12 @@ impl<T: View> From<ViewHandle<T>> for AnyViewHandle {
}
}
impl<T> PartialEq<ViewHandle<T>> for AnyViewHandle {
fn eq(&self, other: &ViewHandle<T>) -> bool {
self.window_id == other.window_id && self.view_id == other.view_id
}
}
impl Drop for AnyViewHandle {
fn drop(&mut self) {
self.ref_counts

View file

@ -1527,7 +1527,7 @@ impl View for Pane {
}
cx.focus(active_item);
} else {
} else if focused != self.tab_bar_context_menu {
self.last_focused_view_by_item
.insert(active_item.id(), focused.downgrade());
}