Skip to content

Autocompletion in git bash for windows flashes/blinks #7688

@mlewand

Description

@mlewand

Environment

Windows build number: Version 10.0.19041.508
Windows Terminal version (if applicable): 1.2.2381.0

Any other software?
Git(git for Windows): 2.28.0

Steps to reproduce

  1. Open a new git bash tab.
  2. Navigate to your windows directory.
  3. Type "cd syst".
  4. Press tab twice.

Expected behavior

Screen doesn't flash, your command is unfolded to "cd system".

Actual behavior

Screen flashes gray for a moment.

If you inspect the gif frame-by-frame it actually inverts colors, rather than make it all single color:

Interestingly it doesn't happen consistently. If I backspace it twice (so that it is "cd syst" again) and press tab, there might be no flash this time.

It's not reproducible in git bash console app itself.

It's a regression that happened over last quarter or so, but I'm surprised I didn't find any existing issue on that.

Here's how the prfilefor bash is defined:

   "profiles": [
        {
            "acrylicOpacity": 1,
            "closeOnExit": true,
            "colorScheme": "Campbell",
            "commandline": "<basePath>\\usr\\bin\\bash.exe\" -i -l",
            "cursorColor": "#FFFFFF",
            "cursorShape": "bar",
            "fontFace": "Consolas",
            "fontSize": 8,
            "guid": "{0504d9fc-deca-44e1-83c4-213dca5023e7}",
            "historySize": 9001,
            "icon": "<basePath>\\mingw64\\share\\git\\git-for-windows.ico",
            "name": "Bash",
            "padding": "0, 0, 0, 0",
            "snapOnInput": true,
            "startingDirectory": "%USERPROFILE%",
            "useAcrylic": true
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionFor questions or discussionNeeds-Tag-FixDoesn't match tag requirementsResolution-AnsweredRelated to questions that have been answered

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions