fix(vim.opt): #14708 Now lets you put duplicate values in wildmode

This commit is contained in:
TJ DeVries
2021-06-11 11:13:43 -04:00
parent f83c25942d
commit 1d3ee1c441
4 changed files with 16 additions and 4 deletions

View File

@@ -1569,7 +1569,15 @@ describe('lua stdlib', function()
eq(wildignore, 'super_first,first,foo')
end)
end)
it('should not remove duplicates from wildmode: #14708', function()
local wildmode = exec_lua [[
vim.opt.wildmode = {"full", "list", "full"}
return vim.o.wildmode
]]
eq(wildmode, 'full,list,full')
end)
end) -- vim.opt
it('vim.cmd', function()
exec_lua [[