mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:20:06 +08:00
fix(api): fix argv api
`:Git log bundle\dir` does not work
This commit is contained in:
parent
bea9bf7ff2
commit
256e72f5e4
@ -35,11 +35,19 @@ function M.parser(cmdline)
|
|||||||
elseif escape and c == '"' then
|
elseif escape and c == '"' then
|
||||||
argv = argv .. '"'
|
argv = argv .. '"'
|
||||||
escape = false
|
escape = false
|
||||||
|
elseif escape then
|
||||||
|
argv = argv .. '\\' .. c
|
||||||
|
escape = false
|
||||||
else
|
else
|
||||||
argv = argv .. c
|
argv = argv .. c
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- is last char is \
|
||||||
|
if escape then
|
||||||
|
argv = argv .. '\\'
|
||||||
|
end
|
||||||
|
|
||||||
if argv ~= '' then
|
if argv ~= '' then
|
||||||
table.insert(argvs, argv)
|
table.insert(argvs, argv)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user