[PR #17129] Fix doskey macros for inputs with >1 consecutive whitespace #31126

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

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

State: closed
Merged: Yes


Initially the PR restored the original v1 conhost code for
MatchAndCopyAlias which fixed the linked issue.
Afterwards, I've taken the liberty to rewrite the code to use modern
constructs again, primarily string_view. Additionally, the v1 code
first counted the number of arguments and then iterated through it
again to assemble them. This new code does both things at once.

Closes #15736

Validation Steps Performed

The unit tests have been extended to cover multiple consecutive
spaces. All tests pass.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17129 **State:** closed **Merged:** Yes --- Initially the PR restored the original v1 conhost code for `MatchAndCopyAlias` which fixed the linked issue. Afterwards, I've taken the liberty to rewrite the code to use modern constructs again, primarily `string_view`. Additionally, the v1 code first counted the number of arguments and then iterated through it again to assemble them. This new code does both things at once. Closes #15736 ## Validation Steps Performed The unit tests have been extended to cover multiple consecutive spaces. All tests pass.
claunia added the pull-request label 2026-01-31 09:45:16 +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#31126