summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-15 19:41:32 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-15 20:23:02 +0000
commitcb9384f8a76d94d387278d679ece9a692316b547 (patch)
tree7fa1a9a35d901f589d6e43ed71a6a4ddb28c6003
parent7267b8281fbcc21d96bb8cb760d2a4e881b4d5e5 (diff)
move InsertMode to normal.hh
-rw-r--r--src/editor.hh12
-rw-r--r--src/input_handler.hh2
-rw-r--r--src/normal.hh12
3 files changed, 13 insertions, 13 deletions
diff --git a/src/editor.hh b/src/editor.hh
index d98feecc..d7e1a1c2 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 a1a461a4..93e0ae94 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 c35027ce..e72d0d20 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<Key, std::function<void (Context& context, int param)>>;
extern KeyMap keymap;