[PR #19409] Fix initial position parsing from -pos tag (#4247) #31828

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

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

State: closed
Merged: Yes


Summary of the Pull Request

Fixes #4247. Improves consistency in -pos tag parsing by supporting single-value input for both axes.

References and Relevant Issues

#4247

Detailed Description of the Pull Request / Additional comments

The change aligns -pos behavior with padding-style logic. Existing comma-separated behavior remains unchanged.

  • A single value like "number" now sets both x and y positions to that value — similar to how padding behaves.
  • A value like "number," (with a trailing comma) continues to set only x, leaving y unchanged.

Validation Steps Performed

  • Ran all unit and integration tests
  • Added unit test to verify single-value and comma-separated inputs

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19409 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Fixes #4247. Improves consistency in -pos tag parsing by supporting single-value input for both axes. ## References and Relevant Issues #4247 ## Detailed Description of the Pull Request / Additional comments The change aligns -pos behavior with padding-style logic. Existing comma-separated behavior remains unchanged. - A single value like "number" now sets both x and y positions to that value — similar to how padding behaves. - A value like "number," (with a trailing comma) continues to set only x, leaving y unchanged. ## Validation Steps Performed - Ran all unit and integration tests - Added unit test to verify single-value and comma-separated inputs ## PR Checklist - [x] Closes #4247 - [x] Tests added/passed - [x] Documentation updated https://github.com/MicrosoftDocs/terminal/pull/890 - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:49:49 +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#31828