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:
parent
2d942deb19
commit
cc3594d6ee
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user