summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/Editline.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-03-26 22:48:57 +0000
committerGreg Clayton <gclayton@apple.com>2014-03-26 22:48:57 +0000
commit241de26bdfbdb76c8529b597bc8d83192f64212e (patch)
tree494e611da5a30adbd8980b734184e7592b2dd1ff /lldb/source/Host/common/Editline.cpp
parent0f38374f718559e3942907722db6a589769ff2de (diff)
downloadbcm5719-llvm-241de26bdfbdb76c8529b597bc8d83192f64212e.tar.gz
bcm5719-llvm-241de26bdfbdb76c8529b597bc8d83192f64212e.zip
Add the "lldb_complete" .editrc command back in case veteran users of LLDB had .editrc key mappings in their ~/.editrc.
<rdar://problem/16279283> llvm-svn: 204870
Diffstat (limited to 'lldb/source/Host/common/Editline.cpp')
-rw-r--r--lldb/source/Host/common/Editline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index da08d0e3ee9..6c3f87222f8 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -82,13 +82,14 @@ Editline::Editline (const char *prog, // prog can't be NULL
::el_set (m_editline, EL_HIST, history, m_history);
}
::el_set (m_editline, EL_ADDFN, "lldb-complete", "Editline completion function", Editline::CallbackComplete);
+ ::el_set (m_editline, EL_ADDFN, "lldb_complete", "Editline completion function", Editline::CallbackComplete); // Keep old "lldb_complete" mapping for older clients that used this in their .editrc
::el_set (m_editline, EL_ADDFN, "lldb-edit-prev-line", "Editline edit prev line", Editline::CallbackEditPrevLine);
::el_set (m_editline, EL_ADDFN, "lldb-edit-next-line", "Editline edit next line", Editline::CallbackEditNextLine);
::el_set (m_editline, EL_BIND, "^r", "em-inc-search-prev", NULL); // Cycle through backwards search, entering string
::el_set (m_editline, EL_BIND, "^w", "ed-delete-prev-word", NULL); // Delete previous word, behave like bash does.
::el_set (m_editline, EL_BIND, "\033[3~", "ed-delete-next-char", NULL); // Fix the delete key.
- ::el_set (m_editline, EL_BIND, "\t", "lldb-complete", NULL); // Bind TAB to be autocompelte
+ ::el_set (m_editline, EL_BIND, "\t", "lldb-complete", NULL); // Bind TAB to be auto complete
// Source $PWD/.editrc then $HOME/.editrc
::el_source (m_editline, NULL);
OpenPOWER on IntegriCloud