diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
| commit | 50917b39ca410feac0f8dbf37b6db408aeedc2b8 (patch) | |
| tree | 7ec723bf865d5a2ab56cb7a98e64aaa5440d959f /src/command_manager.hh | |
| parent | ca7bc55cf5134b11451ca6b88d9fa0205bbaac66 (diff) | |
Remove now unused CompletionFlags
Since shell-script-completions now runs the script asynchronously
and unconditionally, there is no use for the CompletionFlags::Fast
anymore which means we can remove that type altogether.
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index c0a2e878..3f18e423 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -22,7 +22,6 @@ using CommandFunc = std::function<void (const ParametersParser& parser, const ShellContext& shell_context)>; using CommandCompleter = std::function<Completions (const Context& context, - CompletionFlags, CommandParameters, size_t, ByteCount)>; @@ -118,7 +117,7 @@ public: struct Completer { - Completions operator()(const Context& context, CompletionFlags flags, + Completions operator()(const Context& context, StringView command_line, ByteCount cursor_pos); private: @@ -128,8 +127,8 @@ public: struct NestedCompleter { - Completions operator()(const Context& context, CompletionFlags flags, - CommandParameters params, size_t token_to_complete, ByteCount pos_in_token); + Completions operator()(const Context& context, CommandParameters params, + size_t token_to_complete, ByteCount pos_in_token); private: String m_last_complete_command; |
