diff --git a/src/buffer.cc b/src/buffer.cc index b230c09d..4f792e38 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -5,6 +5,7 @@ #include "assert.hh" #include "utils.hh" #include "hooks_manager.hh" +#include "context.hh" namespace Kakoune { diff --git a/src/hooks_manager.hh b/src/hooks_manager.hh index 3fdeece3..37d6454a 100644 --- a/src/hooks_manager.hh +++ b/src/hooks_manager.hh @@ -1,7 +1,6 @@ #ifndef hooks_manager_hh_INCLUDED #define hooks_manager_hh_INCLUDED -#include "context.hh" #include "utils.hh" #include @@ -9,6 +8,7 @@ namespace Kakoune { +class Context; typedef std::function HookFunc; class HooksManager diff --git a/src/main.cc b/src/main.cc index 04e3b6bb..a0512932 100644 --- a/src/main.cc +++ b/src/main.cc @@ -12,6 +12,7 @@ #include "filters.hh" #include "filter_registry.hh" #include "hooks_manager.hh" +#include "context.hh" #include "keys.hh" #include diff --git a/src/window.cc b/src/window.cc index ca4e7908..583be51e 100644 --- a/src/window.cc +++ b/src/window.cc @@ -3,6 +3,7 @@ #include "assert.hh" #include "highlighter_registry.hh" #include "hooks_manager.hh" +#include "context.hh" #include #include