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:
parent
bea9bf7ff2
commit
256e72f5e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user