terminal
terminal copied to clipboard
Unable to select text correctly while new lines are printed and history buffer is full
Windows Terminal version
1.15.2875.0
Windows build number
10.0.22621.819
Other Software
No response
Steps to reproduce
See #10319 for the previous report, it was supposedly fixed in v1.11, but I still see this behaviour.
- Set
"historySize": 100,
for the profile. - Run a script that echoes new lines
- Try to select text
Example script to test the issue:
Do {
echo $(Get-Random)
sleep 0.1
}
while ($true)
https://user-images.githubusercontent.com/613331/204636943-b8f8f4b5-e6da-4fdb-88cd-b59bc8e8ad17.mp4
Expected Behavior
Correctly select text. It works when the history buffer is full.
Actual Behavior
The selection scrolls away from you, selecting different text.
It's like, the viewport is staying at the same place relative to the first-in-order of the selection anchors, but the second anchor is moving... down? Like, it's in the same buffer-relative position.
Almost as if the first one is being adjusted as lines scroll off, but not the second.
:tada:This issue was addressed in #14636, which has now been successfully released as Windows Terminal Preview v1.17.1023
.:tada:
Handy links: