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
This commit is contained in:
Greg Clayton 2014-04-23 21:42:31 +00:00
parent 2d942deb19
commit cc3594d6ee

View File

@ -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
{