* fix(terminal): stack overflow when too many csi args * fix(terminal): stack overflow when too many csi args * fix(api): add missing nargs field to user command Lua callbacks * fix(api): reconfiguring float "relative" does not clear "win" * fix(api): adjust fix for reconfiguring float "relative" * fix(menu): fix listing of submenus * fix(treesitter): ensure TSNode's tree is immutable * fix(lsp): only auto-detach lsp.config enabled clients * test(treesitter): test node access after tree edit * fix(api): update topline when flushing with nvim__redraw() * fix(treesitter): scope highlight state per window * fix(treesitter): support multiple @injection.content captures * fix(treesitter): ensure window is valid in async parsing * test(screen): still match by full row when {MATCH:} is present * fix(editorconfig): a custom property is treated as a section * fix(msgpack): flush incomplete big UI event before packing RPC event * fix(lsp): advertise supported fold kinds * fix(lsp) type annotation for vim.lsp.Config.cmd * fix(vim.system): clear_env=true gives an invalid env to uv.spawn * fix(tui): don't crash when nvim__screenshot() is called with bad path * fix(term): terminal attr index may exceed TERM_ATTRS_MAX * test(editor/defaults_spec): fix flakiness * fix(api): populate lhsrawalt in nvim_get_keymap response * fix(runtime): no conceal in qf on :lopen * fix(messages): make swapfile attention message part of prompt * fix(health): bad format() call - remove patch bad-format-call.patch, as upstream included the patch in the release - remove skipping Rpath tests OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=189
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 92692dbe956f3f5733f2842093f9d374f23b36cd Mon Sep 17 00:00:00 2001
|
|
From: "Justin M. Keyes" <justinkz@gmail.com>
|
|
Date: Sat, 12 Jul 2025 11:41:55 -0400
|
|
Subject: [PATCH] fix(health): bad format() call
|
|
|
|
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.
|
|
---
|
|
runtime/lua/vim/health/health.lua | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua
|
|
index 6cb772118ae1f0..e942ee789c93bf 100644
|
|
--- a/runtime/lua/vim/health/health.lua
|
|
+++ b/runtime/lua/vim/health/health.lua
|
|
@@ -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.',
|