aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-06-29 10:24:41 -0400
committerGitHub <noreply@github.com>2021-06-29 10:24:41 -0400
commit2bcf18deaa32ad371b6de349b353d42e9b1c9ea0 (patch)
treeec954d3f87ae1cea2dccc73fb4213118fbf27d7f /src
parentf8990870ffd86ff36cc86e23b82b74b1a764b525 (diff)
parent19b7cef0a7dc52f3ec016e0dd0ae82f0f6ecd4b1 (diff)
downloadrneovim-2bcf18deaa32ad371b6de349b353d42e9b1c9ea0.tar.gz
rneovim-2bcf18deaa32ad371b6de349b353d42e9b1c9ea0.tar.bz2
rneovim-2bcf18deaa32ad371b6de349b353d42e9b1c9ea0.zip
Merge pull request #14779 from tjdevries/tjdevries/vim_opt_fixes
An assortment of various vim.opt fixups.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/option.c1
-rw-r--r--src/nvim/options.lua2
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"}}