-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move-pane -t (existing tab) now crashes #11037
Comments
@zadjii-msft unlike the other one (#11035), this one I will mark blocking 😄 |
Call stack puts us in |
@zadjii-msft okay, this only happens when I use commandline mode to |
In my attempts to reproduce, it looks like the issue is when you move the last pane from a tab to another tab, and GetActiveControl returns null because there is no longer a control on the tab being destroyed. This follows from my decision to null out the member here: https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalApp/TerminalTab.cpp#L531. The cheap fix is to just wrap the |
Only focus if there is a control to focus (which may be null if e.g. the focused tab is being destroyed) Closes #11037 ## Additional comments I tried to remove the _activePane = nullptr in `TerminalTab::DetachPane` but that actually completely broke being able to focus the control at all making the tab completely unusable. Focus does seem to transfer just fine here with this change. ## Validation Steps Performed Used the command execution to move panes to and from existing panes, including new tabs and destroying tabs.
Only focus if there is a control to focus (which may be null if e.g. the focused tab is being destroyed) Closes #11037 ## Additional comments I tried to remove the _activePane = nullptr in `TerminalTab::DetachPane` but that actually completely broke being able to focus the control at all making the tab completely unusable. Focus does seem to transfer just fine here with this change. ## Validation Steps Performed Used the command execution to move panes to and from existing panes, including new tabs and destroying tabs.
🎉This issue was addressed in #11040, which has now been successfully released as Handy links: |
🎉This issue was addressed in #11040, which has now been successfully released as Handy links: |
This may have regressed with #10982 or other Pane changes, since I don't believe the original code from @Rosefield was broken.
The text was updated successfully, but these errors were encountered: