mirror of
https://github.com/neovim/neovim.git
synced 2026-08-01 05:09:08 +00:00
fix(zip): list a valid empty archive as empty
This commit is contained in:
@@ -45,6 +45,9 @@ local function list_archive(source)
|
||||
end
|
||||
local result = system:wait()
|
||||
if result.code ~= 0 then
|
||||
if vim.trim(result.stdout or '') == 'Empty zipfile.' then
|
||||
return {}
|
||||
end
|
||||
return nil, vim.trim(result.stderr or ''), true
|
||||
end
|
||||
return vim.split(result.stdout or '', '\n', { plain = true, trimempty = true })
|
||||
|
||||
Reference in New Issue
Block a user