Skip to content
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

Set-PSReadlineOption -ExtraPromptLineCount does not work anymore in 2.0.0 Beta (master) #634

Closed
nanoant opened this issue Feb 19, 2018 · 0 comments · Fixed by #655
Closed
Milestone

Comments

@nanoant
Copy link

nanoant commented Feb 19, 2018

This is follow-up of #470

Environment data

PS version: 5.1.15063.786
PSReadline version: 2.0.0-beta1
os: 10.0.15063.0 (WinBuild.160101.0800)
PS file version: 10.0.15063.0 (WinBuild.160101.0800)

Steps to reproduce or exception report

According to the documentation when using multi-line prompt, one needs to add Set-PSReadlineOption -ExtraPromptLineCount <NumberOfExtraLines>. While it worked in 1.2, it does not work anymore in 2.0.0 Beta (master), so Ctrl+L is removing first line of the prompt regardless of the setting.
Use following profile.ps1 to replicate the bug:

function Prompt {
    Write-Host $($ExecutionContext.SessionState.Path.CurrentLocation)
    return '>' * ($nestedPromptLevel + 1) + ' '
}
Set-PSReadlineOption -ExtraPromptLineCount 1
@lzybkr lzybkr added this to the 2.0.0-beta2 milestone Mar 20, 2018
lzybkr pushed a commit that referenced this issue Mar 23, 2018
powercode pushed a commit to powercode/PSReadLine that referenced this issue Apr 9, 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

Successfully merging a pull request may close this issue.

2 participants