Skip to content

Commit 0de8d45

Browse files
author
Caroline Tice
committed
Add ability to search backwards through command history for a particular substring, using ctrl-r key. llvm-svn: 130871
1 parent f7d4598 commit 0de8d45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/tools/driver/IOChannel.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ IOChannel::IOChannel
185185
// Source $PWD/.editrc then $HOME/.editrc
186186
::el_source (m_edit_line, NULL);
187187

188-
el_set(m_edit_line, EL_ADDFN, "lldb_complete",
188+
el_set (m_edit_line, EL_ADDFN, "lldb_complete",
189189
"LLDB completion function",
190190
IOChannel::ElCompletionFn);
191-
el_set(m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
191+
el_set (m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
192+
el_set (m_edit_line, EL_BIND, "^r", "em-inc-search-prev", NULL); // Cycle through backwards search, entering string
192193
el_set (m_edit_line, EL_CLIENTDATA, this);
193194

194195
assert (m_history);

0 commit comments

Comments
 (0)