summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorIgor Ramazanov <igor.ramazanov@protonmail.com>2025-01-18 11:43:57 +0000
committerGitHub <noreply@github.com>2025-01-18 11:43:57 +0000
commitce4dc805e375dbd8c0477ad5005c2110f83de2aa (patch)
treeac2ca142a2182eb51ed64ffd029fa4111b4d8f48 /src/command_manager.hh
parentae9758e95f531d26847cfc7e884da3ceb47670f3 (diff)
parent54084900624493033cb24640d864c109cdac40a7 (diff)
Merge branch 'mawww:master' into contrib/gendocs.sh
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index 878ca129..3f18e423 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -1,7 +1,6 @@
#ifndef command_manager_hh_INCLUDED
#define command_manager_hh_INCLUDED
-#include "coord.hh"
#include "completion.hh"
#include "array_view.hh"
#include "shell_manager.hh"
@@ -12,7 +11,6 @@
#include "hash_map.hh"
#include <functional>
-#include <initializer_list>
namespace Kakoune
{
@@ -24,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)>;
@@ -120,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:
@@ -130,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;