You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exception resizing PWSH window while using up arrow to review past commands #3466
Search the existing issues, especially the pinned issues.
Exception report
Oops, something went wrong.Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.mdThank you!### EnvironmentPSReadLine: 2.1.0PowerShell: 7.2.7OS: Microsoft Windows 10.0.22621BufferWidth: 133BufferHeight: 29Last 82 Keys g d Enter c d Spacebar b i Tab s c e \ m Tab Tab Enter c d Spacebar r g _ w p Tab Enter g c i Enter r e m o v e - i t Tab Spacebar m i c Tab Tab Enter UpArrow Backspace Backspace Backspace Backspace Escape Enter Enter Enter Enter Enter Enter Enter Enter Enter g c i Enter g c i Enter r e m o v e - i t UpArrow Escape
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 'top')
Actual value was 29.
at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Render()
at Microsoft.PowerShell.PSConsoleReadLine.RevertLine(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)
Activity
daxian-dbw commentedon Nov 1, 2022
The resizing issues were fixed by #3074. Please upgrade to the latest PSReadLine (v2.2.6) and give it a try.