diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 |
commit | d44a35e87e405ae98902dc491ba70ed82f58f592 (patch) | |
tree | c943b2e42186cf1629dc15a3b6604514996993ee /source/Interpreter/CommandHistory.cpp | |
parent | 74a628f776edb588bff8f8f5cc16eac947c9d631 (diff) |
Notes
Diffstat (limited to 'source/Interpreter/CommandHistory.cpp')
-rw-r--r-- | source/Interpreter/CommandHistory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Interpreter/CommandHistory.cpp b/source/Interpreter/CommandHistory.cpp index 0fa25ed806ff..ca5c90692b6a 100644 --- a/source/Interpreter/CommandHistory.cpp +++ b/source/Interpreter/CommandHistory.cpp @@ -47,13 +47,13 @@ CommandHistory::FindString(llvm::StringRef input_str) const { size_t idx = 0; if (input_str.front() == '-') { - if (input_str.drop_front(2).getAsInteger(0, idx)) + if (input_str.drop_front(1).getAsInteger(0, idx)) return llvm::None; if (idx >= m_history.size()) return llvm::None; idx = m_history.size() - idx; } else { - if (input_str.drop_front().getAsInteger(0, idx)) + if (input_str.getAsInteger(0, idx)) return llvm::None; if (idx >= m_history.size()) return llvm::None; |