PSReadLine
PSReadLine copied to clipboard
Display problem after Windows Terminal window scrolls with [console]::BufferHeight set larger than [console]::WindowHeight
Prerequisites
- [x] Write a descriptive title.
- [x] Make sure you are able to repro it on the latest released version
- [x] Search the existing issues, especially the pinned issues.
Exception report
N/A
Screenshot
Screenshot showing problem
Environment data
PS Version: 7.5.2
PS HostName: ConsoleHost
PSReadLine Version: 2.3.6
PSReadLine EditMode: Windows
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 180
BufferHeight: 9001
Steps to reproduce
Repeatedly expanding a function and running it... Paste the function 'alb' into PS. 'alb' commands to run it. Paste the edited function into PS again. Up-Arrow, Up-Arrow, Enter to run the latest line which runs the function, (I know, I need to re-write the function to use 'switch', but that wouldn't affect this problem.)
Expected behavior
The first Up-Arrow to display the function. The second should display the previous command, but doesn't. Hit Enter and there are blank lines in the window which shouldn't be there.
Actual behavior
The above behavior is seen.