microsoft / microsoft/terminal
Secondary buffer window restore glitch
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
-
Your Windows build number: (Type
verat a Windows Command Prompt)
17682 -
What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
Runvim -u NONE -i NONE "+set tgc"(needs a recent Windows vim). Maximize the window and then restore it. The buffer will have some visual glitches - the some of the tildes are in random places on the screen. This is a minimal repro, and only happens with termguicolors set (e.g. using ANSI colors in the secondary buffer). The issue is more apparent though if you have some vim plugins installed:

After typing a couple lines with my vimrc:

If you're using no vimrc, it helps to see the issue if you type a couple lines of text and/or set number first. The buffer gets pushed about a third of the way down the screen, and the bottom third appears on top.

- What's wrong / what should be happening instead:
The buffer shouldn't be glitchy.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with vim -u NONE -i NONE "+set tgc" on the reported Windows build, then maximize and restore the window while checking the secondary buffer rendering. Trace the Windows console rendering and resize/restore path; done means the buffer and tildes remain correctly positioned without visual glitches after restoration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100