Skip to content

Commit

Permalink
fix: found better place
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrreadiness committed May 19, 2024
1 parent 4af29af commit 4616833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mux/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ impl Window {

if len > 0 && self.active >= len {
self.set_active_without_saving(len - 1);
} else if len > 0 {
self.set_active_without_saving(self.active);
}
}

Expand Down Expand Up @@ -161,7 +163,6 @@ impl Window {
}
let tab = self.tabs.remove(idx);
self.fixup_active_tab_after_removal(active);
self.invalidate();
tab
}

Expand Down

0 comments on commit 4616833

Please sign in to comment.