Skip to content

Commit 2422fbd

Browse files
authored
fix(health): bad format() call neovim#34904
Problem: Bad format() call on PUC Lua neovim#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.
1 parent eb5b4b9 commit 2422fbd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/lua/vim/health/health.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ local function check_config()
8787
health.error(
8888
'Locale does not support UTF-8. Unicode characters may not display correctly.'
8989
.. ('\n$LANG=%s $LC_ALL=%s $LC_CTYPE=%s'):format(
90-
vim.env.LANG,
91-
vim.env.LC_ALL,
92-
vim.env.LC_CTYPE
90+
vim.env.LANG or '',
91+
vim.env.LC_ALL or '',
92+
vim.env.LC_CTYPE or ''
9393
),
9494
{
9595
'If using tmux, try the -u option.',

0 commit comments

Comments
 (0)