Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

windows10: input shift+" #996

Closed
volcanoxj opened this issue Aug 9, 2019 · 2 comments
Closed

windows10: input shift+" #996

volcanoxj opened this issue Aug 9, 2019 · 2 comments

Comments

@volcanoxj
Copy link

Environment PSReadLine: 2.0.0-beta4

PowerShell: 7.0.0-preview.2
OS: Microsoft Windows 10.0.18362
Last 7 Keys

 " Enter
 Enter
 l s Enter
 "

Exception

System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Render()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(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)
@msftrncs
Copy link
Collaborator

This was possibly fixed in PR #967, now part of beta5. Looks like it might have been related to the length of the prompt.

@daxian-dbw
Copy link
Member

I agree with @msftrncs that this might be fixed in #967. Please upgrade to 2.0.0-beta5 from PowerShellGallery and try it out.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants