diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-18 21:14:58 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-21 16:48:44 +0200 |
| commit | 57a98880ab4ca81d1904aa0b18c6a72bc2600fb6 (patch) | |
| tree | 25df61085ac14563d606b96f3e17cd6036df9f2b /src/input_handler.cc | |
| parent | 559af669c77a3b3b6de0376f177ebbba5ebd0328 (diff) | |
Make completers take "StringView" instead of "const String&" for compatibility with PromptCompleter
We define
using PromptCompleter = std::function<Completions (const Context&, CompletionFlags,
StringView, ByteCount)>;
Some command completers are *almost* convertible to PromptCompleter;
the only difference is the string type of the prefix argument.
The later commits in this series want to use menu() on the
completers. Enable this by harmonizing the types.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
