diff options
Diffstat (limited to 'lldb/source/Utility/CompletionRequest.cpp')
-rw-r--r-- | lldb/source/Utility/CompletionRequest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Utility/CompletionRequest.cpp b/lldb/source/Utility/CompletionRequest.cpp index 1b7697a3586..c88747e2abe 100644 --- a/lldb/source/Utility/CompletionRequest.cpp +++ b/lldb/source/Utility/CompletionRequest.cpp @@ -20,6 +20,7 @@ CompletionRequest::CompletionRequest(llvm::StringRef command_line, : m_command(command_line), m_raw_cursor_pos(raw_cursor_pos), m_match_start_point(match_start_point), m_max_return_elements(max_return_elements), m_matches(&matches) { + matches.Clear(); // We parse the argument up to the cursor, so the last argument in // parsed_line is the one containing the cursor, and the cursor is after the |