terminal icon indicating copy to clipboard operation
terminal copied to clipboard

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

Open Rodrigodd opened this issue 1 year ago • 1 comments

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.

Rodrigodd avatar May 22 '24 12:05 Rodrigodd

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 avatar May 22 '24 16:05 DHowett