Skip to content

command line expansion fails after answering y to x choices to be displayed #730

New issue

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

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

Already on GitHub? Sign in to your account

Closed
christiankuhtz opened this issue Jul 20, 2018 · 3 comments
Milestone

Comments

@christiankuhtz
Copy link

christiankuhtz commented Jul 20, 2018

Environment data

Steps to reproduce or exception report
--------------------------------------
Last 61 Keys:
 A z u r e - Backspace Backspace Backspace Backspace Backspace Backspace Backspace
Backspace Backspace Backspace Backspace n E Backspace Backspace
N e w - A z u r e R m L o Tab Tab Backspace Ctrl+c UpArrow UpArrow DownArrow
N e w - A z a u r Backspace Backspace Backspace u r e R m Tab Tab y

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 name: top
Actual value was -23.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.Menu.DrawMenu(Menu previousMenu)
   at Microsoft.PowerShell.PSConsoleReadLine.PossibleCompletionsImpl(CommandCompletion completions, Boolean menuSelect)
   at Microsoft.PowerShell.PSConsoleReadLine.CompleteImpl(Boolean menuSelect)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
@lzybkr
Copy link
Contributor

lzybkr commented Oct 12, 2018

Was this PSReadLine 2.0 or 1.2?

The bug is most likely here when completing at the bottom of the buffer.

@lzybkr lzybkr added this to the 2.0.0-beta4 milestone Oct 12, 2018
@christiankuhtz
Copy link
Author

sorry, don't know, been too long.

@lzybkr
Copy link
Contributor

lzybkr commented Nov 28, 2018

OK, I'll assume this has been fixed by #783 then.

@lzybkr lzybkr closed this as completed Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants