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
[vi-mode] GotoFirstNonBlankOfLine crashes PSRL when buffer is empty #2050
S e t - P S R e a d L i n e O p t i o n RightArrow Enter Escape _
Exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Text.StringBuilder.get_Chars(Int32 index)
at Microsoft.PowerShell.PSConsoleReadLine.IsVisibleBlank(Int32 newCurrent)
at Microsoft.PowerShell.PSConsoleReadLine.GetFirstNonBlankOfLogicalLinePos(Int32 current)
at Microsoft.PowerShell.PSConsoleReadLine.GotoFirstNonBlankOfLine(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
Prevent crash in GotoFirstNonBlankOfLine (PowerShell#2050)
Prevent crash in `GotoFirstNonBlankOfLine` (#2050) (#2051)