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 /src | |
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 'src')
-rw-r--r-- | src/nvim/option.c | 1 | ||||
-rw-r--r-- | src/nvim/options.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index f57abe89cc..388bedc043 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7765,6 +7765,7 @@ static Dictionary vimoption2dict(vimoption_T *opt) } PUT(dict, "type", CSTR_TO_OBJ(type)); PUT(dict, "default", def); + PUT(dict, "allows_duplicates", BOOL(!(opt->flags & P_NODUP))); return dict; } diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 86dec74f56..0b09686675 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -3152,7 +3152,7 @@ return { full_name='wildmode', abbreviation='wim', short_desc=N_("mode for 'wildchar' command-line expansion"), type='string', list='onecomma', scope={'global'}, - deny_duplicates=true, + deny_duplicates=false, vim=true, varname='p_wim', defaults={if_true={vi="", vim="full"}} |