summaryrefslogtreecommitdiff
path: root/src/keymap_manager.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap_manager.hh')
-rw-r--r--src/keymap_manager.hh7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/keymap_manager.hh b/src/keymap_manager.hh
index 9f9a6ab0..208b44f1 100644
--- a/src/keymap_manager.hh
+++ b/src/keymap_manager.hh
@@ -40,9 +40,7 @@ public:
KeyList get_mapped_keys(KeymapMode mode) const;
auto get_mapping_keys(Key key, KeymapMode mode) {
- struct Keys : ConstArrayView<Key> { ScopedSetBool executing; };
- auto& mapping = get_mapping(key, mode);
- return Keys{mapping.keys, mapping.is_executing};
+ return get_mapping(key, mode).keys;
}
const String& get_mapping_docstring(Key key, KeymapMode mode) { return get_mapping(key, mode).docstring; }
@@ -60,9 +58,8 @@ private:
{
KeyList keys;
String docstring;
- NestedBool is_executing{};
};
- KeymapInfo& get_mapping(Key key, KeymapMode mode);
+ const KeymapInfo& get_mapping(Key key, KeymapMode mode) const;
KeymapManager()
: m_parent(nullptr) {}