From 233a459dee839e07fa7de1035b85c66467f112b3 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Fri, 28 Jul 2017 20:43:42 +0200 Subject: [PATCH] Use single_param for ParameterDesc when relevant in command descs --- src/commands.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index bf41ac88..9ea8b387 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -742,7 +742,7 @@ const CommandDesc remove_highlighter_cmd = { "remove-highlighter", "rmhl", "remove-highlighter : remove highlighter ", - ParameterDesc{ {}, ParameterDesc::Flags::None, 1, 1 }, + single_param, CommandFlags::None, CommandHelper{}, remove_highlighter_completer, @@ -1855,7 +1855,7 @@ const CommandDesc on_key_cmd = { nullptr, "on-key : wait for next user key then and execute , " "with key available in the `key` value", - ParameterDesc{ {}, ParameterDesc::Flags::None, 1, 1 }, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -2021,7 +2021,7 @@ const CommandDesc select_cmd = { "select", nullptr, "select : select given selections", - ParameterDesc{{}, ParameterDesc::Flags::None, 1, 1}, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -2060,7 +2060,7 @@ const CommandDesc rename_session_cmd = { "rename-session", nullptr, "rename-session : change remote session name", - ParameterDesc{{}, ParameterDesc::Flags::None, 1, 1}, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{},