Skip to content

Empty continuation prompt breaks text placement near bottom of window  #2723

@lavirlifiliol

Description

@lavirlifiliol

Environment

PS version: 7.1.3
PSReadline version: 2.2.0-beta3
os: 10.0.19041.320 (WinBuild.160101.0800)
PS file version: 7.1.3.0
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 145
BufferHeight: 38

Steps to reproduce

Run Set-PSReadLineOption -ContinuationPrompt '', press enter until you reach the bottom of the terminal window, then press shift enter a number of times (alternatively, open a string literal). Then start typing regular text.

Expected behavior

The text appears at the bottom of the window, as it does with a non empty prompt.
image

Actual behavior

The text appears at a completely wrong place, but the cursor position remains consistent
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions