mirror of
https://github.com/neovim/neovim.git
synced 2026-02-19 01:48:30 +00:00
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.
This commit is contained in:
2
runtime/lua/vim/_meta/options.lua
generated
2
runtime/lua/vim/_meta/options.lua
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user