aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-06-11 11:13:43 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2021-06-29 08:42:07 -0400
commit1d3ee1c44186c211611abd03bdb4e38004b14ff4 (patch)
tree05e5aa229a7e78a86fbbc83eae80f6f2a91f90f2 /test/functional/lua/vim_spec.lua
parentf83c25942dd8b94ad5218ce78b9e6fb86d2f0358 (diff)
downloadrneovim-1d3ee1c44186c211611abd03bdb4e38004b14ff4.tar.gz
rneovim-1d3ee1c44186c211611abd03bdb4e38004b14ff4.tar.bz2
rneovim-1d3ee1c44186c211611abd03bdb4e38004b14ff4.zip
fix(vim.opt): #14708 Now lets you put duplicate values in wildmode
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r--test/functional/lua/vim_spec.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index 836f514433..51a0b58172 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -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 [[