From 6ed01f402b3a54495c8d9e462b7674864fbbe402 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 9 Aug 2024 18:33:32 +1000 Subject: Reduce headers dependency graph Move more code into the implementation files to reduce the amount of code pulled by headers. --- src/completion.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/completion.cc') diff --git a/src/completion.cc b/src/completion.cc index 762a0413..60e79e07 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -2,6 +2,7 @@ #include "file.hh" #include "context.hh" #include "option_types.hh" +#include "option_manager.hh" #include "regex.hh" 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/completion.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/completion.cc') diff --git a/src/completion.cc b/src/completion.cc index 60e79e07..c44319d8 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -8,8 +8,7 @@ namespace Kakoune { -Completions shell_complete(const Context& context, CompletionFlags flags, - StringView prefix, ByteCount cursor_pos) +Completions shell_complete(const Context& context, StringView prefix, ByteCount cursor_pos) { ByteCount word_start = 0; ByteCount word_end = 0; -- cgit v1.2.3