diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-08-05 13:53:19 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-08-05 13:53:19 +0100 |
| commit | 5b7b6eebafc025a33a2fba39f1873d4d09a04d86 (patch) | |
| tree | 5b0136043bd704542af5801c82ed998a75b7eab3 /src/normal.cc | |
| parent | 38d372567bab6f55d82d1e672485e8b9b23e59b2 (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.cc | 2 |
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, |
