Skip to content

Commit 7da0c46

Browse files
fix(health): bad format() call neovim#34906
Problem: Bad format() call on PUC Lua 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. (cherry picked from commit 2422fbd) Co-authored-by: Justin M. Keyes <[email protected]>
1 parent 91ef860 commit 7da0c46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)