-
Notifications
You must be signed in to change notification settings - Fork 321
MenuComplete on a cmdlet with a long signature moves the cursor to an incorrect position #3369
Copy link
Copy link
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.Resolution-Fixed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
N/AScreenshot
Environment data
PS Version: 7.3.0-preview.2
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.2.6
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 208
BufferHeight: 46Steps to reproduce
- Hold Enter until the prompt is at the bottom of the screen.
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete- Type
Import-M, press Tab, then focusImport-Modulein the autocomplete list (or any other command with many different parameter sets).
Expected behavior
The signature for the command is shown, the prompt moves up and the cursor returns to the edited line.
Actual behavior
The cursor returns one line above the edited line.
Reactions are currently unavailable
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.Resolution-Fixed
