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

Johnny Chen johnny.chen at apple.com
Fri May 4 21:44:12 PDT 2012


Author: johnny
Date: Fri May  4 23:44:12 2012
New Revision: 156230

URL: http://llvm.org/viewvc/llvm-project?rev=156230&view=rev
Log:
Jason Molenda convinced me that we should make ctrl-w on the command line bind to ed-delete-prev-word.
If you have ctrl-w key binding specified with your .editrc file, it will be overridden with ed-delete-prev-word. :-)

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=156230&r1=156229&r2=156230&view=diff
==============================================================================
--- lldb/trunk/tools/driver/IOChannel.cpp (original)
+++ lldb/trunk/tools/driver/IOChannel.cpp Fri May  4 23:44:12 2012
@@ -196,6 +196,7 @@
             IOChannel::ElCompletionFn);
     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_BIND, "^w", "ed-delete-prev-word", NULL); // Delete previous word, behave like bash does.
     el_set (m_edit_line, EL_CLIENTDATA, this);
 
     assert (m_history);





More information about the lldb-commits mailing list