summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-08-05 13:53:19 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-08-05 13:53:19 +0100
commit5b7b6eebafc025a33a2fba39f1873d4d09a04d86 (patch)
tree5b0136043bd704542af5801c82ed998a75b7eab3 /src/normal.cc
parent38d372567bab6f55d82d1e672485e8b9b23e59b2 (diff)
Regenerate shell-candidates for each completion sessions
That should allow fixing the #665 issue while still avoiding to run a potentially long shell command on each keystroke.
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 38de574b..0600144e 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -335,6 +335,8 @@ void command(Context& context, NormalParams params)
if (not CommandManager::has_instance())
return;
+ CommandManager::instance().clear_last_complete_command();
+
context.input_handler().prompt(
":", "", get_face("Prompt"), false,
[](const Context& context, CompletionFlags flags,