diff options
| author | Rahul Yedida <yrahul3910@gmail.com> | 2026-02-18 01:57:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-18 01:57:59 -0500 |
| commit | 9492df027d0715e2bbd3508d6733fd6f6ca6de0b (patch) | |
| tree | 3bc437c762ba5f07eb751e8821a84fd957e178ae /runtime/lua/vim/_meta/options.lua | |
| parent | 456fb0854235eabcde31fb5c610056ca920c51b1 (diff) | |
fix(defaults): 'guifont' "monospace" fallback, trim spaces #37930
Problem:
Some UI clients break if space follows the comma in 'guifont' items.
Also the new 'guifont' default may cause problems if none of the fonts are found.
Solution:
Remove trailing whitespace.
Add a "monospace" fallback which `fontconfig` can resolve on *nix systems.
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/options.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index fda617d610..81fb7e09ff 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -3237,7 +3237,7 @@ vim.go.gcr = vim.go.guicursor --- --- --- @type string -vim.o.guifont = "Source Code Pro, DejaVu Sans Mono, Courier New" +vim.o.guifont = "Source Code Pro,DejaVu Sans Mono,Courier New,monospace" vim.o.gfn = vim.o.guifont vim.go.guifont = vim.o.guifont vim.go.gfn = vim.go.guifont |
