Search results steal focus and scroll when the buffer changes at all #21749

Closed
opened 2026-01-31 07:53:47 +00:00 by claunia · 1 comment
Owner

Originally created by @Rodrigodd on GitHub (May 22, 2024).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.21.1272.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  • Fill the buffer with enough text to make it scrollable (for example, using Get-Random -Count 1000 in PowerShell),
  • search something in such a way that the last result is outside the view,
  • select a search result which is not the last (optinal),
  • type something in the prompt.

Expected Behavior

While typing in the prompt nothing happen, the select result stays the same, and the view focus the prompt.

Actual Behavior

When typing, the search appear to retrigger, and the focus goes to the last result, moving the prompt outside view.

Originally created by @Rodrigodd on GitHub (May 22, 2024). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.21.1272.0 ### Windows build number 10.0.22631.0 ### Other Software _No response_ ### Steps to reproduce - Fill the buffer with enough text to make it scrollable (for example, using `Get-Random -Count 1000` in PowerShell), - search something in such a way that the last result is outside the view, - select a search result which is not the last (optinal), - type something in the prompt. ### Expected Behavior While typing in the prompt nothing happen, the select result stays the same, and the view focus the prompt. ### Actual Behavior When typing, the search appear to retrigger, and the focus goes to the last result, moving the prompt outside view.
Author
Owner

@DHowett commented on GitHub (May 22, 2024):

Hey, I've been hitting this too!

Marking it up for 1.22 and as P1 - we should fix it and backport to 1.21 before 1.21 goes stable.

@DHowett commented on GitHub (May 22, 2024): Hey, I've been hitting this too! Marking it up for 1.22 and as P1 - we should fix it and backport to 1.21 before 1.21 goes stable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21749