summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-08-13 03:10:52 +1000
committerMaxime Coste <mawww@kakoune.org>2023-08-13 03:57:46 +1000
commit0a06d9acbdebf428f4945f0d1575c091a0619b1d (patch)
tree608c39f385f9632d077909d4c6e14bb31772515f /src/input_handler.hh
parente090131b8705124e8ab78de076f4e8f25ba7746e (diff)
Minor formatting tweaks
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 4a776e84..00d2d53a 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -31,6 +31,7 @@ enum class PromptEvent
Validate
};
using PromptCallback = std::function<void (StringView, PromptEvent, Context&)>;
+
enum class PromptFlags
{
None = 0,
@@ -40,7 +41,6 @@ enum class PromptFlags
};
constexpr bool with_bit_ops(Meta::Type<PromptFlags>) { return true; }
-
using KeyCallback = std::function<void (Key, Context&)>;
class InputMode;
@@ -199,9 +199,9 @@ void on_next_key_with_autoinfo(const Context& context, StringView mode_name,
bool hide = should_show_info(AutoInfo::OnKey, context);
hide_auto_info_ifn(context, hide);
cmd(key, context);
- }, [&context, title=std::move(title), info=std::move(info)](Timer&) {
+ }, [&context, title=std::move(title), info=std::move(info)](Timer&) {
show_auto_info_ifn(title, info, AutoInfo::OnKey, context);
- });
+ });
}
void scroll_window(Context& context, LineCount offset, bool mouse_dragging = false);