Skip to content
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

Prevent a crash when holding enter when creating a tab #17788

Merged

Conversation

zadjii-msft
Copy link
Member

I guess I didn't realize that SendCharEvent could get called before Create. In that scenario, enter would hit the automark codepath (due to #17761), then crash because there was no text buffer.

Pretty easy to prevent.

Closes #17776

I guess I didn't realize that `SendCharEvent` could get called before `Create`.
In that scenario, `enter` would hit the automark codepath (due to #17761), then
crash because there was no text buffer.

Pretty easy to prevent.

Closes #17776
@microsoft-github-policy-service microsoft-github-policy-service bot added Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Priority-2 A description (P2) Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news. labels Aug 23, 2024
@carlos-zamora carlos-zamora merged commit 7d790c7 into main Aug 23, 2024
20 checks passed
@carlos-zamora carlos-zamora deleted the dev/migrie/b/17776-dont-crash-on-automark-before-create branch August 23, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Priority-2 A description (P2) Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Holding Enter while opening a new tab crashes Terminal
4 participants