From 7d487e3b4cd32d0f9d031f258bf080ac43efdc68 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 27 Feb 2017 20:44:38 +0000 Subject: [PATCH] Small naming tweak --- src/commands.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index d03582ae..41ceefe9 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -163,8 +163,8 @@ static Completions complete_buffer_name(const Context& context, CompletionFlags auto buffer_completer = make_completer(complete_buffer_name); const ParameterDesc no_params{ {}, ParameterDesc::Flags::None, 0, 0 }; -const ParameterDesc single_name_param{ {}, ParameterDesc::Flags::None, 1, 1 }; -const ParameterDesc single_optional_name_param{ {}, ParameterDesc::Flags::None, 0, 1 }; +const ParameterDesc single_param{ {}, ParameterDesc::Flags::None, 1, 1 }; +const ParameterDesc single_optional_param{ {}, ParameterDesc::Flags::None, 0, 1 }; static constexpr auto scopes = { "global", "buffer", "window" }; @@ -334,7 +334,7 @@ const CommandDesc write_cmd = { "w", "write [filename]: write the current buffer to its file " "or to [filename] if specified", - single_optional_name_param, + single_optional_param, CommandFlags::None, CommandHelper{}, filename_completer, @@ -502,7 +502,7 @@ const CommandDesc buffer_cmd = { "buffer", "b", "buffer : set buffer to edit in current client", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, buffer_completer, @@ -589,7 +589,7 @@ const CommandDesc delete_buffer_cmd = { "delete-buffer", "db", "delete-buffer [name]: delete current buffer or the buffer named if given", - single_optional_name_param, + single_optional_param, CommandFlags::None, CommandHelper{}, buffer_completer, @@ -601,7 +601,7 @@ const CommandDesc force_delete_buffer_cmd = { "db!", "delete-buffer! [name]: delete current buffer or the buffer named if " "given, even if the buffer is unsaved", - single_optional_name_param, + single_optional_param, CommandFlags::None, CommandHelper{}, buffer_completer, @@ -612,7 +612,7 @@ const CommandDesc rename_buffer_cmd = { "rename-buffer", nullptr, "rename-buffer : change current buffer name", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -1176,7 +1176,7 @@ const CommandDesc source_cmd = { "source", nullptr, "source : execute commands contained in ", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, filename_completer, @@ -1987,7 +1987,7 @@ const CommandDesc rename_client_cmd = { "rename-client", "nc", "rename-client : set current client name to ", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -2032,7 +2032,7 @@ const CommandDesc change_directory_cmd = { "change-directory", "cd", "change-directory []: change the server's working directory to , or the home directory if unspecified", - single_optional_name_param, + single_optional_param, CommandFlags::None, CommandHelper{}, make_completer(