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

652c821366

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-04-30 06:02:38 +08:00
committed by GitHub
parent 9eb87c5de6
commit f59db07cdc
3 changed files with 88 additions and 12 deletions

View File

@@ -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',
},
{