aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-16 15:29:36 +0800
committerGitHub <noreply@github.com>2022-08-16 15:29:36 +0800
commitda13ed43cb3593f6d50e08fc6e5f26760da63f84 (patch)
treee210a95266c01861b206479bcda6e3835d2ca4c7 /src/nvim/ex_cmds.lua
parentcf3b871fa940c42e9c94257118f7d1131ebd362a (diff)
downloadrneovim-da13ed43cb3593f6d50e08fc6e5f26760da63f84.tar.gz
rneovim-da13ed43cb3593f6d50e08fc6e5f26760da63f84.tar.bz2
rneovim-da13ed43cb3593f6d50e08fc6e5f26760da63f84.zip
vim-patch:8.2.3888: the argument list may contain duplicates (#19795)
Problem: The argument list may contain duplicates. Solution: Add the :argdedeupe command. (Nir Lichtman, closes vim/vim#6235) https://github.com/vim/vim/commit/73a024209cbfbd5b39a2e974084d807c6131e2ed Use latest index.txt :argdedupe doc from Vim.
Diffstat (limited to 'src/nvim/ex_cmds.lua')
-rw-r--r--src/nvim/ex_cmds.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua
index a5ba5e0b30..37f12a7600 100644
--- a/src/nvim/ex_cmds.lua
+++ b/src/nvim/ex_cmds.lua
@@ -107,6 +107,12 @@ module.cmds = {
func='ex_listdo',
},
{
+ command='argdedupe',
+ flags=TRLBAR,
+ addr_type='ADDR_NONE',
+ func='ex_argdedupe',
+ },
+ {
command='argedit',
flags=bit.bor(BANG, NEEDARG, RANGE, ZEROR, FILES, CMDARG, ARGOPT, TRLBAR),
addr_type='ADDR_ARGUMENTS',