diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-10-28 10:52:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-28 07:52:22 -0700 |
| commit | 3fb53abe2a7ff163dc01d80d4c38c1265a8fa2b4 (patch) | |
| tree | 524a8f49e077e5b68067e8dff545e3f082ce07b1 /runtime/lua | |
| parent | 9875a9b69141e0096767d8ff187fd219c3905429 (diff) | |
| download | rneovim-3fb53abe2a7ff163dc01d80d4c38c1265a8fa2b4.tar.gz rneovim-3fb53abe2a7ff163dc01d80d4c38c1265a8fa2b4.tar.bz2 rneovim-3fb53abe2a7ff163dc01d80d4c38c1265a8fa2b4.zip | |
fix(health): attempt to concatenate table value #36369
Diffstat (limited to 'runtime/lua')
| -rw-r--r-- | runtime/lua/vim/health/health.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua index 3817a4c860..ede32dbcb4 100644 --- a/runtime/lua/vim/health/health.lua +++ b/runtime/lua/vim/health/health.lua @@ -261,14 +261,14 @@ local function check_tmux() local ok, out = system(cmd) local val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g') if not ok then - health.error('command failed: ' .. cmd .. '\n' .. out) + health.error(('command failed: %s\n%s'):format(vim.inspect(cmd), out)) return 'error' elseif val == '' then cmd = { 'tmux', 'show-option', '-qvgs', option } -- try session scope ok, out = system(cmd) val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g') if not ok then - health.error('command failed: ' .. cmd .. '\n' .. out) + health.error(('command failed: %s\n%s'):format(vim.inspect(cmd), out)) return 'error' end end @@ -316,7 +316,7 @@ local function check_tmux() end if not ok then - health.error('command failed: ' .. cmd .. '\n' .. out) + health.error(('command failed: %s\n%s'):format(vim.inspect(cmd), out)) elseif tmux_default_term ~= vim.env.TERM then health.info('default-terminal: ' .. tmux_default_term) health.error( @@ -372,7 +372,7 @@ local function check_terminal() == '' ) then - health.error('command failed: ' .. cmd .. '\n' .. out) + health.error(('command failed: %s\n%s'):format(vim.inspect(cmd), out)) else health.info( vim.fn.printf( |