diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2021-06-11 11:13:43 -0400 |
---|---|---|
committer | TJ DeVries <devries.timothyj@gmail.com> | 2021-06-29 08:42:07 -0400 |
commit | 1d3ee1c44186c211611abd03bdb4e38004b14ff4 (patch) | |
tree | 05e5aa229a7e78a86fbbc83eae80f6f2a91f90f2 /runtime/lua/vim/_meta.lua | |
parent | f83c25942dd8b94ad5218ce78b9e6fb86d2f0358 (diff) | |
download | rneovim-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 'runtime/lua/vim/_meta.lua')
-rw-r--r-- | runtime/lua/vim/_meta.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/lua/vim/_meta.lua b/runtime/lua/vim/_meta.lua index 02d1154df4..85861420aa 100644 --- a/runtime/lua/vim/_meta.lua +++ b/runtime/lua/vim/_meta.lua @@ -325,9 +325,12 @@ local convert_value_to_vim = (function() return result end, - [OptionTypes.ARRAY] = function(_, value) + [OptionTypes.ARRAY] = function(info, value) if type(value) == "string" then return value end - return table.concat(remove_duplicate_values(value), ",") + if not info.allows_duplicates then + value = remove_duplicate_values(value) + end + return table.concat(value, ",") end, [OptionTypes.MAP] = function(_, value) |