[Lldb-commits] [lldb] r130871 - /lldb/trunk/tools/driver/IOChannel.cpp

Caroline Tice ctice at apple.com
Wed May 4 14:39:02 PDT 2011


Author: ctice
Date: Wed May  4 16:39:02 2011
New Revision: 130871

URL: http://llvm.org/viewvc/llvm-project?rev=130871&view=rev
Log:

Add ability to search backwards through command
history for a particular substring, using ctrl-r key.


Modified:
    lldb/trunk/tools/driver/IOChannel.cpp

Modified: lldb/trunk/tools/driver/IOChannel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/IOChannel.cpp?rev=130871&r1=130870&r2=130871&view=diff
==============================================================================
--- lldb/trunk/tools/driver/IOChannel.cpp (original)
+++ lldb/trunk/tools/driver/IOChannel.cpp Wed May  4 16:39:02 2011
@@ -185,10 +185,11 @@
     // 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);





More information about the lldb-commits mailing list