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

Sean Callanan scallanan at apple.com
Wed Jul 11 15:55:32 PDT 2012

Author: spyffe
Date: Wed Jul 11 17:55:32 2012
New Revision: 160091

URL: http://llvm.org/viewvc/llvm-project?rev=160091&view=rev
Added an editline fix to make the delete key act
as expected on Mac OS X.



Modified: lldb/trunk/tools/driver/IOChannel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/IOChannel.cpp?rev=160091&r1=160090&r2=160091&view=diff
--- lldb/trunk/tools/driver/IOChannel.cpp (original)
+++ lldb/trunk/tools/driver/IOChannel.cpp Wed Jul 11 17:55:32 2012
@@ -212,6 +212,7 @@
     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_BIND, "\e[3~", "ed-delete-next-char", NULL); // Fix the delete key.
     el_set (m_edit_line, EL_CLIENTDATA, this);
     // Source $PWD/.editrc then $HOME/.editrc

More information about the lldb-commits mailing list