PSReadLine
PSReadLine copied to clipboard
Reporting this as was requested by the utility
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
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.yaml
Thank you!
### Environment
PSReadLine: 2.3.3
PowerShell: 7.4.5
OS: Microsoft Windows 10.0.26100
BufferWidth: 120
BufferHeight: 30
Last 135 Keys:
Ctrl+c Ctrl+c Ctrl+r i n ) r a n g Ctrl+c Ctrl+c Ctrl+r i n - Ctrl+c Ctrl+r i n _ ) r a Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+r a c c u r a t e Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+r a c c u r a t e r Backspace Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+r t h i s o n e Ctrl+c Ctrl+c Ctrl+r t h i s p o n e Ctrl+c Ctrl+c Ctrl+r d o e s i t Ctrl+c Ctrl+r t h i s Spacebar o n e Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+r d o e s Spacebar Ctrl+c Ctrl+c UpArrow Ctrl+c Ctrl+c Ctrl+r f f m p e g Ctrl+Backspace
### 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 31.
at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.CalculateWhereAndWhatToRender(Boolean cursorMovedToInitialPos, RenderData renderData, LineInfoForRendering& lineInfoForRendering)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.RenderWithPredictionQueryPaused()
at Microsoft.PowerShell.PSConsoleReadLine.ClearStatusMessage(Boolean render)
at Microsoft.PowerShell.PSConsoleReadLine.InteractiveHistorySearch(Int32 direction)
at Microsoft.PowerShell.PSConsoleReadLine.ReverseSearchHistory(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, Nullable`1 lastRunStatus)
Screenshot
Environment data
PS Version: 7.4.5
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.3
PSReadLine EditMode: Windows
OS: 10.0.26100.1735 (WinBuild.160101.0800)
BufferWidth: 131
BufferHeight: 46
Steps to reproduce
No idea, it just happened
Expected behavior
Well...
Actual behavior
That happens.