mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05:00
fix(health): show full curl output
Problem: The health check for `curl` strips the first line of the version output, which contains potentially useful information. Solution: Only trim empty lines.
This commit is contained in:
1 parent
e51f5e17e1
commit
06e4b159ed
1 file changed
+1
-1
@@ -452,7 +452,7 @@ local function check_external_tools()
|
||||
local lines = { string.format('curl %s (%s)', curl_version, curl_path) }
|
||||
|
||||
for line in vim.gsplit(curl_out, '\n', { plain = true }) do
|
||||
if line ~= '' and not line:match('^curl') then
|
||||
if line ~= '' then
|
||||
table.insert(lines, line)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user