1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 21:10:05 +08:00

fix(api): fix argv api

`:Git log bundle\dir` does not work
This commit is contained in:
Eric Wong 2024-03-09 23:41:32 +08:00
parent bea9bf7ff2
commit 256e72f5e4

View File

@ -35,11 +35,19 @@ function M.parser(cmdline)
elseif escape and c == '"' then
argv = argv .. '"'
escape = false
elseif escape then
argv = argv .. '\\' .. c
escape = false
else
argv = argv .. c
end
end
-- is last char is \
if escape then
argv = argv .. '\\'
end
if argv ~= '' then
table.insert(argvs, argv)
end