summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-11-18 23:43:51 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-11-18 23:47:28 +0000
commit9656f088e77ea05501539ce63b7420f13b287139 (patch)
treedeefe0d248f770347bccc3a4b105c33331ec7f3d /src/input_handler.hh
parent5c37f0dd5ee08c1975aedf46c9f0827108589da1 (diff)
Change autoinfo option to be a flags option, document flags options
Support the value1|value2|value3 syntax for flag options.
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 025f8979..49767eb4 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -103,13 +103,13 @@ private:
int m_handle_key_level = 0;
};
-bool show_auto_info_ifn(StringView title, StringView info, const Context& context);
+bool show_auto_info_ifn(StringView title, StringView info, AutoInfo mask, const Context& context);
template<typename Cmd>
void on_next_key_with_autoinfo(const Context& context, KeymapMode keymap_mode, Cmd cmd,
StringView title, StringView info)
{
- const bool hide = show_auto_info_ifn(title, info, context);
+ const bool hide = show_auto_info_ifn(title, info, AutoInfo::OnKey, context);
context.input_handler().on_next_key(
keymap_mode, [hide,cmd](Key key, Context& context) mutable {
if (hide)