commands: Allow any number of arguments in :bc, :bc!

Limiting to zero arguments was incorrect - a set of buffers can be
specified.
This commit is contained in:
Michael Davis 2025-03-22 09:17:29 -04:00
parent 14cab4ba62
commit 2d4c2a170c
No known key found for this signature in database

View file

@ -2613,7 +2613,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
fun: buffer_close,
completer: CommandCompleter::all(completers::buffer),
signature: Signature {
positionals: (0, Some(0)),
positionals: (0, None),
..Signature::DEFAULT
},
},
@ -2624,7 +2624,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
fun: force_buffer_close,
completer: CommandCompleter::all(completers::buffer),
signature: Signature {
positionals: (0, Some(0)),
positionals: (0, None),
..Signature::DEFAULT
},
},