Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new
### Environment
PSReadLine: 2.0.0
PowerShell: 5.1.26100.3624
OS: Microsoft Windows 10.0.26100
Last 46 Keys
c d s Backspace Backspace Backspace Backspace c d Spacebar a p i Enter
UpArrow UpArrow UpArrow UpArrow UpArrow Enter
UpArrow UpArrow UpArrow Enter
UpArrow Enter
UpArrow Enter
UpArrow Enter
UpArrow Enter
1 UpArrow Enter
UpArrow UpArrow Enter
UpArrow UpArrow Enter
UpArrow UpArrow Enter
UpArrow UpArrow
### Exception
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was 25.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.HistoryRecall(Int32 direction)
at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
PS Version: 5.1.26100.3624
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0
PSReadLine EditMode: Windows
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 236
BufferHeight: 25
Prerequisites
Exception report
Screenshot
N/A
Environment data
Steps to reproduce
Expected behavior
Previous command appears
Actual behavior
Exception flew