[PR #13706] Fixe arg parsing when one-character argument is followed by ; #29730

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

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

State: closed
Merged: Yes


Summary of the Pull Request

Changes the way _addCommandsForArg determines if the delimiter was at the beginning of the argument so that it accounts for the fact that match includes the last character of the string before it.

PR Checklist

Validation Steps Performed

wt -p "u"; nt -p "u" does not cause an error

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13706 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Changes the way `_addCommandsForArg` determines if the delimiter was at the beginning of the argument so that it accounts for the fact that match includes the last character of the string before it. ## PR Checklist * [x] Closes #13277 ## Validation Steps Performed `wt -p "u"; nt -p "u"` does not cause an error
claunia added the pull-request label 2026-01-31 09:36:33 +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#29730