Primary/secondary buffer size mismatch #287

Open
opened 2026-01-30 21:48:02 +00:00 by claunia · 0 comments
Owner

Originally created by @parkovski on GitHub (Jun 1, 2018).

When switching from the secondary buffer to the primary buffer, if the console was resized while the secondary buffer was active, it goes back to the previous size. Most apparent using vim. Only happens using Windows vim (aka console API buffers), not Linux/WSL (ANSI buffer switch).

  • 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 in an unmaximized console (happens regardless of vimrc or termguicolors setting). Maximize the console with vim open. Close the console while maximized. The console resets to its previous size, but keeps its maximized window frame:

image

(Probably should have included the whole screen, but you can see a portion of my full screen browser through the transparent console)

  • What's wrong / what should be happening instead:
    Switching buffers should not affect the window size - buffers should always assume the size of the window.
Originally created by @parkovski on GitHub (Jun 1, 2018). When switching from the secondary buffer to the primary buffer, if the console was resized while the secondary buffer was active, it goes back to the previous size. Most apparent using vim. Only happens using Windows vim (aka console API buffers), not Linux/WSL (ANSI buffer switch). * 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 in an unmaximized console (happens regardless of vimrc or termguicolors setting). Maximize the console with vim open. Close the console while maximized. The console resets to its previous size, but keeps its maximized window frame: ![image](https://user-images.githubusercontent.com/1094150/40817110-699755aa-6505-11e8-85df-1c71e0e66a7e.png) (Probably should have included the whole screen, but you can see a portion of my full screen browser through the transparent console) * What's wrong / what should be happening instead: Switching buffers should not affect the window size - buffers should always assume the size of the window.
claunia added the Product-ConhostResolution-By-Design labels 2026-01-30 21:48:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#287