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:
Justin M. Keyes
2025-07-12 14:27:51 -04:00
committed by GitHub
parent eb5b4b9e57
commit 2422fbdd5f

View File

@ -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.',