diff options
Diffstat (limited to 'src/command_manager.cc')
| -rw-r--r-- | src/command_manager.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index d62fbdc2..26751db4 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -96,6 +96,13 @@ Completions CommandManager::complete(const std::string& command_line, size_t cur return result; } + if (token_to_complete == 1) // filename completion + { + Completions result(tokens[1].first, cursor_pos); + std::string prefix = command_line.substr(tokens[1].first, cursor_pos); + result.candidates = complete_filename(prefix); + return result; + } return Completions(cursor_pos, cursor_pos); } |
