mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(health): bad format() call #34904
Problem: Bad format() call on PUC Lua #34901 Error: Failed to run healthcheck for "vim.health" plugin. Exception: runtime/lua/vim/health/health.lua:89: bad argument #1 to 'format' (string expected, got nil) Solution: Avoid passing nil.
This commit is contained in:
@ -87,9 +87,9 @@ local function check_config()
|
||||
health.error(
|
||||
'Locale does not support UTF-8. Unicode characters may not display correctly.'
|
||||
.. ('\n$LANG=%s $LC_ALL=%s $LC_CTYPE=%s'):format(
|
||||
vim.env.LANG,
|
||||
vim.env.LC_ALL,
|
||||
vim.env.LC_CTYPE
|
||||
vim.env.LANG or '',
|
||||
vim.env.LC_ALL or '',
|
||||
vim.env.LC_CTYPE or ''
|
||||
),
|
||||
{
|
||||
'If using tmux, try the -u option.',
|
||||
|
Reference in New Issue
Block a user