Repository navigation
Support CSI 16 in hosted terminal to match upstream - #1711
Merged
Merged
Conversation
ychin
force-pushed
the
terminal-osi16-support
branch
from
November 24, 2026 01:49
c70022e to
1606d60
Compare
Upstream Vim refactored the cell pixel code, and now supports responding to CSI 16 calls from hosted terminal (see v9.2.1343 / e5d1d16). Add that support to MacVim too and add a test for that (upstream didn't add a test for this). Also, use this opportunity to refactor the code so MacVim has less special case ifdefs. MacVim's handling of this simply works more similar to terminal Vim than GUI Vim due to the async nature of MacVim's multi-process GUI. We can just reuse the terminal Vim codepath instead of having to add special case ifdef everywhere, and use update_cell_size() to do most of the work by updating a centralized location whenever we receive a new size from the GUI frontend.
ychin
force-pushed
the
terminal-osi16-support
branch
from
November 24, 2026 01:58
1606d60 to
50c8f55
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream Vim refactored the cell pixel code, and now supports responding to CSI 16 calls from hosted terminal (see v9.2.1343 / e5d1d16).
Add that support to MacVim too and add a test for that (upstream didn't add a test for this). Also, use this opportunity to refactor the code so MacVim has less special case ifdefs. MacVim's handling of this simply works more similar to terminal Vim than GUI Vim due to the async nature of MacVim's multi-process GUI. We can just reuse the terminal Vim codepath instead of having to add special case ifdef everywhere, and use update_cell_size() to do most of the work by updating a centralized location whenever we receive a new size from the GUI frontend.