summaryrefslogtreecommitdiff
path: root/src/completion.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion.hh')
-rw-r--r--src/completion.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/completion.hh b/src/completion.hh
index c833e2b4..bd89ea4c 100644
--- a/src/completion.hh
+++ b/src/completion.hh
@@ -26,10 +26,15 @@ struct Completions
: start(start), end(end) {}
};
-typedef std::function<Completions (const Context&,
- const String&, ByteCount)> Completer;
+enum class CompletionFlags
+{
+ None,
+ Fast
+};
+using Completer = std::function<Completions (const Context&, CompletionFlags,
+ const String&, ByteCount)>;
-inline Completions complete_nothing(const Context& context,
+inline Completions complete_nothing(const Context& context, CompletionFlags,
const String&, ByteCount cursor_pos)
{
return Completions(cursor_pos, cursor_pos);