diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 19:41:32 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 20:23:02 +0000 |
| commit | cb9384f8a76d94d387278d679ece9a692316b547 (patch) | |
| tree | 7fa1a9a35d901f589d6e43ed71a6a4ddb28c6003 /src | |
| parent | 7267b8281fbcc21d96bb8cb760d2a4e881b4d5e5 (diff) | |
move InsertMode to normal.hh
Diffstat (limited to 'src')
| -rw-r--r-- | src/editor.hh | 12 | ||||
| -rw-r--r-- | src/input_handler.hh | 2 | ||||
| -rw-r--r-- | src/normal.hh | 12 |
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; |
