mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
sh: improve emacs mode
in emacs mode ^W should delete the previous word by default Note that upstreaming this change directly into libedit is in process. Reported by: manu Reviewed by: jills, pstef, manu Differential Revision: https://reviews.freebsd.org/D29493
This commit is contained in:
parent
4544929cb5
commit
3ae61b972b
@ -204,6 +204,7 @@ bad:
|
||||
else if (Eflag) {
|
||||
el_set(el, EL_EDITOR, "emacs");
|
||||
el_set(el, EL_BIND, "^R", "em-inc-search-prev", NULL);
|
||||
el_set(el, EL_BIND, "^W", "ed-delete-prev-word", NULL);
|
||||
}
|
||||
el_set(el, EL_BIND, "^I", "sh-complete", NULL);
|
||||
el_source(el, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user