[PR #17905] Fix a cooked read deadlock #31401

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

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

State: closed
Merged: Yes


Because _layoutLine would never return column == columnLimit for
control character visualizers, we'd get a deadlock in _redisplay,
as it tries to fill the line until it's full, but never achieve it.

Closes #17893

Validation Steps Performed

  • Press Ctrl-A to insert "^A"
  • Press Home to get to the start of the prompt
  • Press and hold "A" until the line wraps
  • The line wraps and there's no deadlock
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17905 **State:** closed **Merged:** Yes --- Because `_layoutLine` would never return `column == columnLimit` for control character visualizers, we'd get a deadlock in `_redisplay`, as it tries to fill the line until it's full, but never achieve it. Closes #17893 ## Validation Steps Performed * Press Ctrl-A to insert "^A" * Press Home to get to the start of the prompt * Press and hold "A" until the line wraps * The line wraps and there's no deadlock ✅
claunia added the pull-request label 2026-01-31 09:47:03 +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#31401