diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index d8e8f546a53..88c3eedb048 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -219,9 +219,14 @@ CommandObjectMultiword::HandleCompletion int &cursor_char_position, int match_start_point, int max_return_elements, + bool &word_complete, StringList &matches ) { + // Any of the command matches will provide a complete word, otherwise the individual + // completers will override this. + word_complete = true; + if (cursor_index == 0) { CommandObject::AddNamesMatchingPartialString (m_subcommand_dict, @@ -245,7 +250,8 @@ CommandObjectMultiword::HandleCompletion input, cursor_index, cursor_char_position, match_start_point, - max_return_elements, + max_return_elements, + word_complete, matches); } else @@ -273,7 +279,8 @@ CommandObjectMultiword::HandleCompletion cursor_index, cursor_char_position, match_start_point, - max_return_elements, + max_return_elements, + word_complete, matches); } |