From 2d4c2a170cab5f625139b829b2d3f00b303a8550 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 22 Mar 2025 09:17:29 -0400 Subject: [PATCH] commands: Allow any number of arguments in `:bc`, `:bc!` Limiting to zero arguments was incorrect - a set of buffers can be specified. --- helix-term/src/commands/typed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index b570e50bc..4317993cd 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -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 }, },