diff options
author | Caroline Tice <ctice@apple.com> | 2011-05-04 21:39:02 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2011-05-04 21:39:02 +0000 |
commit | 0de8d4503b5791b671f5f690ec9c6a54eb01f28c (patch) | |
tree | 58d6c9aeddac1195229792fc1b095bafa461a876 | |
parent | f7d4598b74962fe5fd1a9984621aefd13f76109d (diff) | |
download | bcm5719-llvm-0de8d4503b5791b671f5f690ec9c6a54eb01f28c.tar.gz bcm5719-llvm-0de8d4503b5791b671f5f690ec9c6a54eb01f28c.zip |
Add ability to search backwards through command
history for a particular substring, using ctrl-r key.
llvm-svn: 130871
-rw-r--r-- | lldb/tools/driver/IOChannel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/tools/driver/IOChannel.cpp b/lldb/tools/driver/IOChannel.cpp index d2cf4ea859b..f989c871d30 100644 --- a/lldb/tools/driver/IOChannel.cpp +++ b/lldb/tools/driver/IOChannel.cpp @@ -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); |