Skip to content

Fix guifont escaping - #181

Merged
igorgladkoborodov merged 1 commit into
mainfrom
igor/fix-font-escape
Jul 20, 2026
Merged

Fix guifont escaping#181
igorgladkoborodov merged 1 commit into
mainfrom
igor/fix-font-escape

Conversation

@igorgladkoborodov

@igorgladkoborodov igorgladkoborodov commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

Neovim 0.12 silently overrode VVset fontfamily=... from init.vim. The font stuck on SF Mono. The same command worked when typed after startup. It ships &guifont defaulting to SF Mono,Menlo,Monaco,Courier New,monospace and emits it via option_set at UI attach. The renderer's optionSet.guifont handler echoed it back as :VVset fontfamily=..., overwriting the user's value.

Neovim 0.11 had an empty default &guifont, so the loop never ran.

Fix

Drop the renderer-side guifont → VVset feedback and move the sync into vvset.vim. Now VVset and &guifont track each other in both directions, with a guard against recursion.

Test plan

  • VVset fontfamily=Menlo in init.vim, no set guifont=. Font applies on first paint. :set guifont? reads Menlo.
  • :set guifont=Monaco:h10 updates both family and size.

@igorgladkoborodov
igorgladkoborodov merged commit d54cb03 into main Jul 20, 2026
2 checks passed
@igorgladkoborodov
igorgladkoborodov deleted the igor/fix-font-escape branch July 20, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant