diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-10-25 00:01:17 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-10-25 00:30:46 +0100 |
| commit | 2c09da50be80dbaf484682689bfd1a685d601573 (patch) | |
| tree | 6fe5efc4ef6ff1c379c388de48fdc0dd96b79981 /src/buffer.hh | |
| parent | 77ac777526a6a05c2d2027e30c0bbcf9720ad5b7 (diff) | |
Add key mapping support
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 4b67ce48..8727d217 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -1,9 +1,10 @@ #ifndef buffer_hh_INCLUDED #define buffer_hh_INCLUDED -#include "hook_manager.hh" #include "line_and_column.hh" +#include "hook_manager.hh" #include "option_manager.hh" +#include "keymap_manager.hh" #include "string.hh" #include "units.hh" @@ -160,6 +161,8 @@ public: const OptionManager& options() const { return m_options; } HookManager& hooks() { return m_hooks; } const HookManager& hooks() const { return m_hooks; } + KeymapManager& keymaps() { return m_keymaps; } + const KeymapManager& keymaps() const { return m_keymaps; } std::unordered_set<BufferChangeListener*>& change_listeners() const { return m_change_listeners; } @@ -212,6 +215,7 @@ private: OptionManager m_options; HookManager m_hooks; + KeymapManager m_keymaps; friend constexpr Flags operator|(Flags lhs, Flags rhs) { |
