diff --git a/src/editor.hh b/src/editor.hh index d98feecc6..d7e1a1c29 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -12,18 +12,6 @@ namespace InputModes { class Insert; } class Register; -enum class InsertMode : unsigned -{ - Insert, - Append, - Replace, - InsertAtLineBegin, - InsertAtNextLineBegin, - AppendAtLineEnd, - OpenLineBelow, - OpenLineAbove -}; - // An Editor is a buffer mutator // // The Editor class provides methods to manipulate a set of selections diff --git a/src/input_handler.hh b/src/input_handler.hh index a1a461a44..93e0ae948 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -4,7 +4,7 @@ #include "color.hh" #include "completion.hh" #include "context.hh" -#include "editor.hh" +#include "normal.hh" #include "keys.hh" #include "string.hh" #include "utils.hh" diff --git a/src/normal.hh b/src/normal.hh index c35027cec..e72d0d202 100644 --- a/src/normal.hh +++ b/src/normal.hh @@ -11,6 +11,18 @@ namespace Kakoune class Context; +enum class InsertMode : unsigned +{ + Insert, + Append, + Replace, + InsertAtLineBegin, + InsertAtNextLineBegin, + AppendAtLineEnd, + OpenLineBelow, + OpenLineAbove +}; + using KeyMap = std::unordered_map>; extern KeyMap keymap;