mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
Ensure focus is transferred when opening the first item in pane
This commit is contained in:
parent
b7091dd5e2
commit
0cae3e0ac0
1 changed files with 2 additions and 2 deletions
|
@ -280,9 +280,9 @@ impl Pane {
|
|||
let prev_active_item_ix = mem::replace(&mut self.active_item_index, index);
|
||||
if prev_active_item_ix != self.active_item_index {
|
||||
self.item_views[prev_active_item_ix].1.deactivated(cx);
|
||||
self.focus_active_item(cx);
|
||||
cx.notify();
|
||||
}
|
||||
self.focus_active_item(cx);
|
||||
cx.notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue