[PR #17788] Prevent a crash when holding enter when creating a tab #31370

Open
opened 2026-01-31 09:46:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17788

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17788 **State:** closed **Merged:** Yes --- 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
claunia added the pull-request label 2026-01-31 09:46:50 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31370