diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-30 06:02:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 06:02:38 +0800 |
commit | f59db07cdc8f266c9d08f4c229326d471f2d62ac (patch) | |
tree | 20d7b93242026c47352726ae091aa282f52e13e9 /src/nvim/ex_cmds.lua | |
parent | 9eb87c5de696700047238895d0b9515741e9cca1 (diff) | |
download | rneovim-f59db07cdc8f266c9d08f4c229326d471f2d62ac.tar.gz rneovim-f59db07cdc8f266c9d08f4c229326d471f2d62ac.tar.bz2 rneovim-f59db07cdc8f266c9d08f4c229326d471f2d62ac.zip |
vim-patch:9.1.0381: cbuffer and similar commands don't accept a range (#28571)
Problem: cbuffer and similar quickfix and locationlist commands don't
accept a range, even so it is documented they should
(ilan-schemoul, after 8.1.1241)
Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER
fixes: vim/vim#14638
closes: vim/vim#14657
https://github.com/vim/vim/commit/652c821366691a8bd5474766581090df0c742fa1
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/nvim/ex_cmds.lua')
-rw-r--r-- | src/nvim/ex_cmds.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 520637f5b3..c8574c805c 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -337,7 +337,7 @@ M.cmds = { { command = 'caddbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -373,7 +373,7 @@ M.cmds = { { command = 'cbuffer', flags = bit.bor(BANG, RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -459,7 +459,7 @@ M.cmds = { { command = 'cgetbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1329,7 +1329,7 @@ M.cmds = { { command = 'laddbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1353,7 +1353,7 @@ M.cmds = { { command = 'lbuffer', flags = bit.bor(BANG, RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1451,7 +1451,7 @@ M.cmds = { { command = 'lgetbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { |