From 9656f088e77ea05501539ce63b7420f13b287139 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 18 Nov 2015 23:43:51 +0000 Subject: Change autoinfo option to be a flags option, document flags options Support the value1|value2|value3 syntax for flag options. --- src/input_handler.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input_handler.hh') 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 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) -- cgit v1.2.3