Skip to content

Commit

Permalink
Fix: slow close non last tab (#5441)
Browse files Browse the repository at this point in the history
* fix: slow close non last tab

* fix: found better place

* Update mux/src/window.rs

---------

Co-authored-by: Wez Furlong <[email protected]>
  • Loading branch information
Mrreadiness and wez authored Jun 8, 2024
1 parent ccdfc32 commit 4f190b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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 {
self.invalidate();
}
}

Expand Down

0 comments on commit 4f190b0

Please sign in to comment.