mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 14:29:02 +00:00
fix(health): attempt to concatenate table value #36369
This commit is contained in:
@@ -261,14 +261,14 @@ local function check_tmux()
|
|||||||
local ok, out = system(cmd)
|
local ok, out = system(cmd)
|
||||||
local val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g')
|
local val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g')
|
||||||
if not ok then
|
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'
|
return 'error'
|
||||||
elseif val == '' then
|
elseif val == '' then
|
||||||
cmd = { 'tmux', 'show-option', '-qvgs', option } -- try session scope
|
cmd = { 'tmux', 'show-option', '-qvgs', option } -- try session scope
|
||||||
ok, out = system(cmd)
|
ok, out = system(cmd)
|
||||||
val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g')
|
val = vim.fn.substitute(out, [[\v(\s|\r|\n)]], '', 'g')
|
||||||
if not ok then
|
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'
|
return 'error'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -316,7 +316,7 @@ local function check_tmux()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not ok then
|
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
|
elseif tmux_default_term ~= vim.env.TERM then
|
||||||
health.info('default-terminal: ' .. tmux_default_term)
|
health.info('default-terminal: ' .. tmux_default_term)
|
||||||
health.error(
|
health.error(
|
||||||
@@ -372,7 +372,7 @@ local function check_terminal()
|
|||||||
== ''
|
== ''
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
health.error('command failed: ' .. cmd .. '\n' .. out)
|
health.error(('command failed: %s\n%s'):format(vim.inspect(cmd), out))
|
||||||
else
|
else
|
||||||
health.info(
|
health.info(
|
||||||
vim.fn.printf(
|
vim.fn.printf(
|
||||||
|
|||||||
Reference in New Issue
Block a user