MSYS2 Vim buffer is stuck in the terminal window when scrolling back #15832

Closed
opened 2026-01-31 04:49:41 +00:00 by claunia · 2 comments
Owner

Originally created by @matteocoder on GitHub (Nov 10, 2021).

Windows Terminal version (or Windows build number)

Windows Terminal Preview 1.12.2931.0

Other Software

vim 8.2.3441 (MSYS2 version, from Git Bash),
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys).

Steps to reproduce

Prerequisite:
Create a new profile with the following command line command:

C:\Program Files\Git\bin\bash.exe --norc --noprofile -i -l

and start a new terminal tab using that profile.

  1. Invoke a program, such as yes, whose output scrolls the terminal window, allowing you to scroll back, then press ctrl-c to stop it;
  2. invoke vim, and then issue the command :version;
  3. quit Vim

Expected Behavior

When scrolling back, only the output from yes should be visible.

Actual Behavior

Vim's interface remains "stuck" on the terminal window and mixes with the output of yes. The screenshot shows the issue.

vim stuck

Originally created by @matteocoder on GitHub (Nov 10, 2021). ### Windows Terminal version (or Windows build number) Windows Terminal Preview 1.12.2931.0 ### Other Software vim 8.2.3441 (MSYS2 version, from Git Bash), GNU bash, version 4.4.23(1)-release (x86_64-pc-msys). ### Steps to reproduce Prerequisite: Create a new profile with the following command line command: ``` C:\Program Files\Git\bin\bash.exe --norc --noprofile -i -l ``` and start a new terminal tab using that profile. 1. Invoke a program, such as `yes`, whose output scrolls the terminal window, allowing you to scroll back, then press `ctrl-c` to stop it; 2. invoke `vim`, and then issue the command `:version`; 3. quit Vim ### Expected Behavior When scrolling back, only the output from `yes` should be visible. ### Actual Behavior Vim's interface remains "stuck" on the terminal window and mixes with the output of `yes`. The screenshot shows the issue. ![vim stuck](https://user-images.githubusercontent.com/22897138/141172987-7fcd56fe-cdbf-4bbe-a017-4b7b662c1106.JPG)
claunia added the Resolution-Duplicate label 2026-01-31 04:49:41 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 10, 2021):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #381 for more discussion.

/dup #381

@zadjii-msft commented on GitHub (Nov 10, 2021): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #381 for more discussion. /dup #381
Author
Owner

@ghost commented on GitHub (Nov 10, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 10, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15832