summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-04-23 21:42:31 +0000
committerGreg Clayton <gclayton@apple.com>2014-04-23 21:42:31 +0000
commitcc3594d6eef94006f31dd1730d47d2dbc1943dce (patch)
tree3aca3306e5c0c996ddc7e9f016b72918fbd1f666 /lldb/source/Host
parent2d942deb1904222b59521bceae6b7b2b26d16927 (diff)
downloadbcm5719-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.cpp5
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
{
OpenPOWER on IntegriCloud