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/context.cc | |
| parent | 77ac777526a6a05c2d2027e30c0bbcf9720ad5b7 (diff) | |
Add key mapping support
Diffstat (limited to 'src/context.cc')
| -rw-r--r-- | src/context.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/context.cc b/src/context.cc index 513bd6cb..49a64f7d 100644 --- a/src/context.cc +++ b/src/context.cc @@ -75,6 +75,15 @@ HookManager& Context::hooks() const return GlobalHooks::instance(); } +KeymapManager& Context::keymaps() const +{ + if (has_window()) + return window().keymaps(); + if (has_buffer()) + return buffer().keymaps(); + return GlobalKeymaps::instance(); +} + void Context::print_status(DisplayLine status) const { if (has_client()) |
