Skip to content

The current cursor is off after window resizing #3637

Open
@RoadToDream

Description

@RoadToDream

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/A

Screenshot

N/A

Environment data

PS Version: 7.3.3
PS HostName: ConsoleHost
PSReadLine Version: 2.2.6
PSReadLine EditMode: Windows
OS: 10.0.22621.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 9001

Steps to reproduce

Steps to reproduce

  1. Open PowerShell from any folder such that primary prompt is longer than one line.
  2. Enter any command and click enter.
  3. Maximize PowerShell window so primary prompt is arranged within one line.
  4. Cursor will be off-position and overwrite my primary prompt.
  5. This issue will not appear when PSReadLine is disabled

Video attached below:
With PSReadLine enabled:

Recording.2023-03-27.095155.mp4

Without PSReadLine enabled:

Recording.2023-03-27.095536.mp4

Similar issue has also been reported in #1269

Expected behavior

PS C:\Program Files\Windows Defender Advanced Threat Protection\Classification> ls

Actual behavior

PS C:\Program FilelsWindows Defender Advanced Threat Protection\Classification>

Please note the input 'ls' replaces my primary prompt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions