summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-10-22 21:18:23 +1100
committerMaxime Coste <mawww@kakoune.org>2024-10-22 21:18:23 +1100
commit50917b39ca410feac0f8dbf37b6db408aeedc2b8 (patch)
tree7ec723bf865d5a2ab56cb7a98e64aaa5440d959f /src/normal.cc
parentca7bc55cf5134b11451ca6b88d9fa0205bbaac66 (diff)
Remove now unused CompletionFlags
Since shell-script-completions now runs the script asynchronously and unconditionally, there is no use for the CompletionFlags::Fast anymore which means we can remove that type altogether.
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 056f11de..6aa5b703 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -491,9 +491,9 @@ void command(const Context& context, EnvVarMap env_vars, char reg = 0)
":", {}, default_command,
context.faces()["Prompt"], PromptFlags::DropHistoryEntriesWithBlankPrefix,
':',
- [completer=CommandManager::Completer{}](const Context& context, CompletionFlags flags,
+ [completer=CommandManager::Completer{}](const Context& context,
StringView cmd_line, ByteCount pos) mutable {
- return completer(context, flags, cmd_line, pos);
+ return completer(context, cmd_line, pos);
},
[env_vars = std::move(env_vars), default_command](StringView cmdline, PromptEvent event, Context& context) {
if (context.has_client())
@@ -842,7 +842,7 @@ void regex_prompt(Context& context, String prompt, char reg, RegexMode mode, Fun
context.input_handler().prompt(
std::move(prompt), {}, default_regex, context.faces()["Prompt"],
PromptFlags::Search, reg,
- [](const Context& context, CompletionFlags, StringView regex, ByteCount pos) -> Completions {
+ [](const Context& context, StringView regex, ByteCount pos) -> Completions {
auto current_word = [](StringView s) {
auto it = s.end();
while (it != s.begin() and is_word(*(it-1)))