-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.
Description
I am so used to moving word by word in PowerShell under windows, that I keep pressing Ctrl+Left and Ctrl+Right under linux as well, which at some point resulted in the following message asking me to report this here:
Environment
PSReadLine: 2.0.0
PowerShell: 7.0.0
OS: Linux 5.6.8-arch1-1 #1 SMP PREEMPT Wed, 29 Apr 2020 16:22:56 +0000
Last 200 Keys
Enter
v i m Spacebar Backspace Backspace Backspace Backspace Backspace v i m Spacebar . Backspace Backspace Backspace Backspace Backspace Backspace v i m Spacebar Backspace Backspace Backspace Backspace c p Spacebar c o Tab B Tab Spacebar c o Tab B Tab Backspace Backspace Backspace Backspace l a g d a Enter
v i m Spacebar c o Tab B Tab Backspace Backspace Backspace Backspace l Tab Enter
v i m Spacebar - s Spacebar t e x t Backspace Backspace s t . v i m Spacebar - c Spacebar " " LeftArrow w g Backspace q RightArrow LeftArrow LeftArrow LeftArrow : RightArrow End Spacebar c o Tab B Tab Backspace Backspace Backspace Backspace l a g d a Enter
v i m UpArrow UpArrow Enter
UpArrow LeftArrow UpArrow UpArrow UpArrow UpArrow DownArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow RightArrow Backspace Enter
UpArrow UpArrow Enter
UpArrow Enter
UpArrow UpArrow Home RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow Backspace Backspace Backspace Delete Spacebar _ Backspace " Escape 1 ; 5 C UpArrow UpArrow DownArrow UpArrow Home RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow Escape
Exception
System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'count')
at System.Collections.Generic.List`1.GetRange(Int32 index, Int32 count)
at Microsoft.PowerShell.PSConsoleReadLine.EndEditGroup(Action`2 instigator, Object instigatorArg)
at Microsoft.PowerShell.PSConsoleReadLine.GroupUndoHelper.EndGroup()
at Microsoft.PowerShell.PSConsoleReadLine.ViCommandMode(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)
Metadata
Metadata
Assignees
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.