fix: opening the InputSelector resulted in invalid pane ids (#6403)

* fix: opening the InputSelector resulted in invalid pane ids

* Update wezterm-gui/src/termwindow/mod.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
This commit is contained in:
MikkaandWez Furlong authored and GitHub committed 2025-02-08 14:08:31 -07:00
1 parent 84ece8790c
commit 6e2eeed6e5
1 file changed
+3 -1
+3 -1
View File
@@ -2265,7 +2265,9 @@ impl TermWindow {
None => return,
};
let pane = match self.get_active_pane_or_overlay() {
// Ignore any current overlay: we're going to cancel it out below
// and we don't want this new one to reference that cancelled pane
let pane = match self.get_active_pane_no_overlay() {
Some(pane) => pane,
None => return,
};