mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-28 13:18:04 +00:00
pane: Fix pinned tabs being persisted after closing (#17666)
Release Notes: - Fixed tabs staying pinned after closing unrelated tabs
This commit is contained in:
parent
48a16f9e70
commit
3cea7ccbff
1 changed files with 3 additions and 0 deletions
|
@ -1364,6 +1364,9 @@ impl Pane {
|
|||
self.activation_history
|
||||
.retain(|entry| entry.entity_id != self.items[item_index].item_id());
|
||||
|
||||
if self.is_tab_pinned(item_index) {
|
||||
self.pinned_tab_count -= 1;
|
||||
}
|
||||
if item_index == self.active_item_index {
|
||||
let index_to_activate = self
|
||||
.activation_history
|
||||
|
|
Loading…
Reference in a new issue