From d0dfcd2b78f86d35afe1f1a5fd5d880a9d6c76b2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 25 Jul 2017 11:38:13 +0200 Subject: [PATCH] Support values starting with `-` for in set-register command Fixes #1220 --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index e69dc1e3..bf41ac88 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -2007,7 +2007,7 @@ const CommandDesc set_register_cmd = { "set-register", "reg", "set-register : set register to ", - ParameterDesc{{}, ParameterDesc::Flags::None, 2, 2}, + ParameterDesc{{}, ParameterDesc::Flags::SwitchesAsPositional, 2, 2}, CommandFlags::None, CommandHelper{}, CommandCompleter{},