diff options
author | Greg Clayton <gclayton@apple.com> | 2014-04-23 21:42:31 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-04-23 21:42:31 +0000 |
commit | cc3594d6eef94006f31dd1730d47d2dbc1943dce (patch) | |
tree | 3aca3306e5c0c996ddc7e9f016b72918fbd1f666 /lldb/source/Host | |
parent | 2d942deb1904222b59521bceae6b7b2b26d16927 (diff) | |
download | bcm5719-llvm-cc3594d6eef94006f31dd1730d47d2dbc1943dce.tar.gz bcm5719-llvm-cc3594d6eef94006f31dd1730d47d2dbc1943dce.zip |
Change the default key bindings for multi-line mode:
Up/down arrows select next/prev line in multi-line mode
CTRL+N and CTRL+P do next/prev history
llvm-svn: 207033
Diffstat (limited to 'lldb/source/Host')
-rw-r--r-- | lldb/source/Host/common/Editline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index ba20b9ceb9c..6ec84d7dfb1 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -98,8 +98,9 @@ Editline::Editline (const char *prog, // prog can't be NULL // where "-k up" and "-k down" don't always work. ::el_set (m_editline, EL_BIND, "^[[A", "lldb-edit-prev-line", NULL); // Map up arrow ::el_set (m_editline, EL_BIND, "^[[B", "lldb-edit-next-line", NULL); // Map down arrow - ::el_set (m_editline, EL_BIND, "^\[", "ed-prev-history", NULL); - ::el_set (m_editline, EL_BIND, "^\]", "ed-next-history", NULL); + // Bindings for next/prev history + ::el_set (m_editline, EL_BIND, "^P", "ed-prev-history", NULL); // Map up arrow + ::el_set (m_editline, EL_BIND, "^N", "ed-next-history", NULL); // Map down arrow } else { |