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

@@ -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)