From 3e1bb777ce9c8de3dbe55dee4e454241eddc98d1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Nov 2013 21:53:10 +0000 Subject: Add automatic completion display in prompt mode Controlled by the autoshowcompl option Completers now take a CompletionFlag parameter, used to specify we want fast completion (tag completion can be slow, we do not want to run it if not explicitely wanted by the user). --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 2ff1e0b0..226f554b 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -249,7 +249,7 @@ void command(Context& context, int) { context.client().prompt( ":", get_color("Prompt"), - std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3), + std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3, _4), [](const String& cmdline, PromptEvent event, Context& context) { if (event == PromptEvent::Validate) CommandManager::instance().execute(cmdline, context); -- cgit v1.2.3