Skip to content

Commit a3a25af

Browse files
author
George Rimar
committedJan 16, 2019
[lldb] - Fix crash when listing the history with the key up.
This is https://bugs.llvm.org/show_bug.cgi?id=40112, Currently, lldb crashes after pressing the up arrow key when listing the history for expressions. The patch fixes the mistype that was a reason. Differential revision: https://reviews.llvm.org/D56014 llvm-svn: 351313
1 parent 5168ddf commit a3a25af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lldb/source/Host/common/Editline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ unsigned char Editline::RecallHistory(bool earlier) {
443443
m_live_history_lines = m_input_lines;
444444
m_in_history = true;
445445
} else {
446-
if (history_w(pHistory, &history_event, earlier ? H_NEXT : H_PREV) == -1) {
446+
if (history_w(pHistory, &history_event, earlier ? H_PREV : H_NEXT) == -1) {
447447
// Can't move earlier than the earliest entry
448448
if (earlier)
449449
return CC_ERROR;

0 commit comments

Comments
 (0)
Please sign in to comment.