Skip to content

git bash loses / mangles order of keyboard input received while busy #5632

Open
@kevinushey

Description

@kevinushey

This one feels hard to reproduce, but I can reproduce somewhat frequently in this scenario. (It may take a few times to get the issue to occur.)

  1. Use Ctrl + C to send an interrupt,
  2. While the interrupt is being processed and the prompt is being redrawn, try typing something, e.g. git.

I frequently get keyboard input reordered in an unexpected way, e.g.

kevin@GGCOMP MINGW64 ~
$ ^C
gi
kevin@GGCOMP MINGW64 ~
$ tgi

Note that the t keypress was received after gi was processed and printed, but while the prompt was being redrawn. The inserted t was then placed at the front of the command, instead of the end.

kevin@GGCOMP MINGW64 ~
$ git --version
git version 2.49.0.windows.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions