From cb9384f8a76d94d387278d679ece9a692316b547 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Dec 2013 19:41:32 +0000 Subject: [PATCH] move InsertMode to normal.hh --- src/editor.hh | 12 ------------ src/input_handler.hh | 2 +- src/normal.hh | 12 ++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) 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;