aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-08-12 13:52:03 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-08-12 13:52:03 +0200
commitcff880b0c9a07ff8275e91982c0d6e2293b537e7 (patch)
treeb675ad1fa11f47a4b9a545a384fdbe3e95f58642 /lldb/source/Interpreter/CommandInterpreter.cpp
parentfccf4c6115a8e4f73a945f99d6a444c52fd7f60a (diff)
downloadllvm-cff880b0c9a07ff8275e91982c0d6e2293b537e7.zip
llvm-cff880b0c9a07ff8275e91982c0d6e2293b537e7.tar.gz
llvm-cff880b0c9a07ff8275e91982c0d6e2293b537e7.tar.bz2
Revert "[lldb] Display autosuggestion part in gray if there is one possible suggestion"
This reverts commit 246afe0cd17fce935a01171f3cca548e02523e5c. This broke the following tests on Linux it seems: lldb-api :: commands/expression/multiline-completion/TestMultilineCompletion.py lldb-api :: iohandler/completion/TestIOHandlerCompletion.py
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index ec82efb..4786e46 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1878,19 +1878,6 @@ void CommandInterpreter::HandleCompletion(CompletionRequest &request) {
HandleCompletionMatches(request);
}
-llvm::Optional<std::string>
-CommandInterpreter::GetAutoSuggestionForCommand(llvm::StringRef line) {
- if (line.empty())
- return llvm::None;
- const size_t s = m_command_history.GetSize();
- for (int i = s - 1; i >= 0; --i) {
- llvm::StringRef entry = m_command_history.GetStringAtIndex(i);
- if (entry.consume_front(line))
- return entry.str();
- }
- return llvm::None;
-}
-
CommandInterpreter::~CommandInterpreter() {}
void CommandInterpreter::UpdatePrompt(llvm::StringRef new_prompt) {