Description
From the dump...
Last 2 Keys:
` 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 -1.
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(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary
2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Environment data
PS version: 5.1.18312.1001
PSReadline version: 2.0.0-beta2
os: 10.0.18312.1001 (WinBuild.160101.0800)
PS file version: 10.0.18312.1001 (WinBuild.160101.0800)
Steps to reproduce or exception report
Open new admin PS.
Snap to bottom-left of screen.
Hit up arrow.
Exception.
Repro'ed three times in a row, but can't seem to repro again.