diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 | ||||
-rw-r--r-- | src/nvim/ops.c | 1 | ||||
-rw-r--r-- | src/nvim/option.c | 1 | ||||
-rw-r--r-- | src/nvim/options.lua | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index c399d47b7e..4af7794317 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4237,6 +4237,8 @@ skip: } } + curbuf->deleted_bytes2 = 0; + if (first_line != 0) { /* Need to subtract the number of added lines from "last_line" to get * the line number before the change (same as adding the number of diff --git a/src/nvim/ops.c b/src/nvim/ops.c index f2f6803665..04a8fc8499 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3992,6 +3992,7 @@ int do_join(size_t count, del_lines((long)count - 1, false); curwin->w_cursor.lnum = t; curbuf_splice_pending--; + curbuf->deleted_bytes2 = 0; /* * Set the cursor column: 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"}} |