[PR #16273] Fix tabs being printed in cmd.exe prompts #30885

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

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

State: closed
Merged: Yes


A late change in #16105 wrapped _buffer into a class to better track
its dirty state, but I failed to notice that in this one instance we
intentionally manipulated _buffer without marking it as dirty.
This fixes the issue by adding a call to MarkAsClean().

This changeset also adds the test instructions from #15783 as a
document to this repository. I've extended the list with two
bugs we've found in the implementation since then.

Validation Steps Performed

  • In cmd.exe, with an empty prompt in an empty directory:
    Pressing tab produces an audible bing and prints no text
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16273 **State:** closed **Merged:** Yes --- A late change in #16105 wrapped `_buffer` into a class to better track its dirty state, but I failed to notice that in this one instance we intentionally manipulated `_buffer` without marking it as dirty. This fixes the issue by adding a call to `MarkAsClean()`. This changeset also adds the test instructions from #15783 as a document to this repository. I've extended the list with two bugs we've found in the implementation since then. ## Validation Steps Performed * In cmd.exe, with an empty prompt in an empty directory: Pressing tab produces an audible bing and prints no text ✅
claunia added the pull-request label 2026-01-31 09:43:34 +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#30885