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/input_handler.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index dd475c92..fa7c91b1 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -5,6 +5,7 @@ #include "constexpr_utils.hh" #include "context.hh" #include "env_vars.hh" +#include "enum.hh" #include "face.hh" #include "normal.hh" #include "optional.hh" -- cgit v1.2.3 From 65ac5d42c9209c4b89c590c93cfa8d985e66b168 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 15 Aug 2024 11:41:35 +1000 Subject: Remove unused ConstexprVector and rename constexpr_utils.hh to array.hh --- src/input_handler.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index fa7c91b1..54c5fd5b 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -2,7 +2,7 @@ #define input_handler_hh_INCLUDED #include "completion.hh" -#include "constexpr_utils.hh" +#include "array.hh" #include "context.hh" #include "env_vars.hh" #include "enum.hh" -- 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/input_handler.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 54c5fd5b..32e9bfca 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -42,8 +42,7 @@ class InputMode; enum class KeymapMode : char; enum class CursorMode; -using PromptCompleter = std::function; +using PromptCompleter = std::function; enum class InsertMode : unsigned { Insert, -- cgit v1.2.3