microsoft / microsoft/terminal

Secondary buffer window restore glitch

Open
#202 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Bug Product-Conhost
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    17682

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
    Run vim -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:
    image

After typing a couple lines with my vimrc:
image

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.

image

  • What's wrong / what should be happening instead:
    The buffer shouldn't be glitchy.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.