diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-24 21:02:07 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-24 21:22:20 +1100 |
| commit | 346c78f5e00302a6a8b0563b84c504eda61d4a62 (patch) | |
| tree | cc9b1eb972b4dda474b67df031309442bc5e2fe7 /src/input_handler.hh | |
| parent | 4b72cfe530b682ad97f4d4815dcce7ca305bb7e6 (diff) | |
Header and dependency cleanup
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 600d78b8..35dc718a 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -47,6 +47,10 @@ enum class InsertMode : unsigned; enum class KeymapMode : char; enum class CursorMode; +using PromptCompleter = std::function<Completions (const Context&, CompletionFlags, + StringView, ByteCount)>; + + class InputHandler : public SafeCountable { public: @@ -66,7 +70,7 @@ public: // not change the mode itself void prompt(StringView prompt, String initstr, String emptystr, Face prompt_face, PromptFlags flags, - Completer completer, PromptCallback callback); + PromptCompleter completer, PromptCallback callback); void set_prompt_face(Face prompt_face); // enter menu mode, callback is called on each selection change, |
