diff options
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/FormatEntity.cpp | 1 | ||||
-rw-r--r-- | lldb/source/Core/IOHandler.cpp | 19 |
2 files changed, 7 insertions, 13 deletions
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp index 52a85aa78c6..e88298645d0 100644 --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -2350,7 +2350,6 @@ size_t FormatEntity::AutoComplete(CompletionRequest &request) { llvm::StringRef str = request.GetCursorArgumentPrefix().str(); request.SetWordComplete(false); - str = str.drop_front(request.GetMatchStartPoint()); const size_t dollar_pos = str.rfind('$'); if (dollar_pos == llvm::StringRef::npos) diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index 51cae59639f..a7dbf3c28aa 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -172,8 +172,7 @@ IOHandlerConfirm::~IOHandlerConfirm() = default; int IOHandlerConfirm::IOHandlerComplete( IOHandler &io_handler, const char *current_line, const char *cursor, - const char *last_char, int skip_first_n_matches, int max_matches, - StringList &matches, StringList &descriptions) { + const char *last_char, StringList &matches, StringList &descriptions) { if (current_line == cursor) { if (m_default_response) { matches.AppendString("y"); @@ -221,20 +220,17 @@ void IOHandlerConfirm::IOHandlerInputComplete(IOHandler &io_handler, int IOHandlerDelegate::IOHandlerComplete( IOHandler &io_handler, const char *current_line, const char *cursor, - const char *last_char, int skip_first_n_matches, int max_matches, - StringList &matches, StringList &descriptions) { + const char *last_char, StringList &matches, StringList &descriptions) { switch (m_completion) { case Completion::None: break; case Completion::LLDBCommand: return io_handler.GetDebugger().GetCommandInterpreter().HandleCompletion( - current_line, cursor, last_char, skip_first_n_matches, max_matches, - matches, descriptions); + current_line, cursor, last_char, matches, descriptions); case Completion::Expression: { CompletionResult result; - CompletionRequest request(current_line, cursor - current_line, - skip_first_n_matches, max_matches, result); + CompletionRequest request(current_line, cursor - current_line, result); CommandCompletions::InvokeCommonCompletionCallbacks( io_handler.GetDebugger().GetCommandInterpreter(), CommandCompletions::eVariablePathCompletion, request, nullptr); @@ -449,13 +445,12 @@ int IOHandlerEditline::FixIndentationCallback(Editline *editline, int IOHandlerEditline::AutoCompleteCallback( const char *current_line, const char *cursor, const char *last_char, - int skip_first_n_matches, int max_matches, StringList &matches, - StringList &descriptions, void *baton) { + StringList &matches, StringList &descriptions, void *baton) { IOHandlerEditline *editline_reader = (IOHandlerEditline *)baton; if (editline_reader) return editline_reader->m_delegate.IOHandlerComplete( - *editline_reader, current_line, cursor, last_char, skip_first_n_matches, - max_matches, matches, descriptions); + *editline_reader, current_line, cursor, last_char, matches, + descriptions); return 0; } #endif |