Skip to content

Cursor position seems to be mispositioned when using WLS2 & git rebase #4644

@AndrejMitrovic

Description

@AndrejMitrovic

Environment

Windows build number: Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable): 0.9.433.0
Git: 2.25.0 (also reproduced with 2.17.1)
Vim: 8.0 (also reproduced with Vim 8.2)

Steps to reproduce

  • Run a WSL2 instance (Ubuntu)
  • Clone any Git repository
  • Begin a rebase git rebase -i HEAD~2

Expected behavior

The cursor should be at the beginning of the line:

Capture

Actual behavior

The cursor position is not at the beginning of the line:

Capture


Other notes:

  • When running WSL (bash.exe) through the command prompt (Linux host), it works OK. But then I'm not using Windows Terminal.
  • When running Git directly on Windows with the command prompt, it also works OK. But again, it's not using Windows Terminal.

So I think this is a Windows Terminal bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to somethingPriority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions