1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(a.lua): fix alt function

This commit is contained in:
wsdjeg 2022-11-05 22:38:21 +08:00
parent cb57c350e6
commit 539eee1846

View File

@ -53,8 +53,11 @@ function M.set_config_name(path, name)
end
function M.alt(request_parse, ...)
local argv = {...}
local alt_type = argv[1] or 'alternate'
local argvs = ...
local alt_type = 'alternate'
if argvs ~= nil then
alt_type = argvs[1] or alt_type
end
local alt = nil
if fn.exists('b:alternate_file_config') ~= 1 then
local conf_file_path = M.getConfigPath()