Add ability to search backwards through command

history for a particular substring, using ctrl-r key.

llvm-svn: 130871
This commit is contained in:
Caroline Tice 2011-05-04 21:39:02 +00:00
parent f7d4598b74
commit 0de8d4503b
1 changed files with 3 additions and 2 deletions

View File

@ -185,10 +185,11 @@ IOChannel::IOChannel
// Source $PWD/.editrc then $HOME/.editrc
::el_source (m_edit_line, NULL);
el_set(m_edit_line, EL_ADDFN, "lldb_complete",
el_set (m_edit_line, EL_ADDFN, "lldb_complete",
"LLDB completion function",
IOChannel::ElCompletionFn);
el_set(m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
el_set (m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
el_set (m_edit_line, EL_BIND, "^r", "em-inc-search-prev", NULL); // Cycle through backwards search, entering string
el_set (m_edit_line, EL_CLIENTDATA, this);
assert (m_history);