From 64ed046e5a841520506e1954ff0bd756ea112d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 16 Aug 2024 08:49:19 +0900 Subject: include headers cleanup --- src/command_manager.hh | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/command_manager.hh') diff --git a/src/command_manager.hh b/src/command_manager.hh index 878ca129..c0a2e878 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 -#include namespace Kakoune { -- cgit v1.2.3 From 50917b39ca410feac0f8dbf37b6db408aeedc2b8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Oct 2024 21:18:23 +1100 Subject: 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. --- src/command_manager.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/command_manager.hh') 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; using CommandCompleter = std::function; @@ -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; -- cgit v1.2.3