diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-02-27 20:44:38 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-02-27 20:44:38 +0000 |
| commit | 7d487e3b4cd32d0f9d031f258bf080ac43efdc68 (patch) | |
| tree | de575c818bf00c934776ab4369f4c1b21af6f18f /src | |
| parent | eace7e04246c6b56aed1edd78c3f8c9fb7cf4853 (diff) | |
Small naming tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 20 |
1 files 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 <name>: 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 <name> 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 <name> 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 <name>: change current buffer name", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -1176,7 +1176,7 @@ const CommandDesc source_cmd = { "source", nullptr, "source <filename>: execute commands contained in <filename>", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, filename_completer, @@ -1987,7 +1987,7 @@ const CommandDesc rename_client_cmd = { "rename-client", "nc", "rename-client <name>: set current client name to <name>", - single_name_param, + single_param, CommandFlags::None, CommandHelper{}, CommandCompleter{}, @@ -2032,7 +2032,7 @@ const CommandDesc change_directory_cmd = { "change-directory", "cd", "change-directory [<directory>]: change the server's working directory to <directory>, or the home directory if unspecified", - single_optional_name_param, + single_optional_param, CommandFlags::None, CommandHelper{}, make_completer( |
