From bbb508634e2036159ecc93e62989ca1f21049e86 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 23 Jul 2018 08:35:13 +1000 Subject: [PATCH] Support setting registers to empty lists Note that empty registers still act as-if they contained a single empty string. Fixes #2228 --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 668f4e25..2981c116 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -2124,7 +2124,7 @@ const CommandDesc set_register_cmd = { "set-register", "reg", "set-register ...: set register to ", - ParameterDesc{{}, ParameterDesc::Flags::SwitchesAsPositional, 2}, + ParameterDesc{{}, ParameterDesc::Flags::SwitchesAsPositional, 1}, CommandFlags::None, CommandHelper{}, CommandCompleter{},