mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:10:07 +08:00
fix(a.lua): fix alt function
This commit is contained in:
parent
cb57c350e6
commit
539eee1846
@ -53,8 +53,11 @@ function M.set_config_name(path, name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.alt(request_parse, ...)
|
function M.alt(request_parse, ...)
|
||||||
local argv = {...}
|
local argvs = ...
|
||||||
local alt_type = argv[1] or 'alternate'
|
local alt_type = 'alternate'
|
||||||
|
if argvs ~= nil then
|
||||||
|
alt_type = argvs[1] or alt_type
|
||||||
|
end
|
||||||
local alt = nil
|
local alt = nil
|
||||||
if fn.exists('b:alternate_file_config') ~= 1 then
|
if fn.exists('b:alternate_file_config') ~= 1 then
|
||||||
local conf_file_path = M.getConfigPath()
|
local conf_file_path = M.getConfigPath()
|
||||||
|
Loading…
Reference in New Issue
Block a user