diff --git a/ChangeLog b/ChangeLog index 67ea28041..b17401d61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ more often and exit with a non zero code if asked to find a hostname in a known_hosts file and it wasn't there; originally from reyk@, ok djm + - djm@cvs.openbsd.org 2013/08/31 00:13:54 + [sftp.c] + make ^w match ksh behaviour (delete previous word instead of entire line) 20130828 - (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the diff --git a/sftp.c b/sftp.c index e21144064..f7b488ae5 100644 --- a/sftp.c +++ b/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.154 2013/08/09 03:56:42 djm Exp $ */ +/* $OpenBSD: sftp.c,v 1.155 2013/08/31 00:13:54 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -2013,6 +2013,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) el_set(el, EL_BIND, "\\e[5C", "em-next-word", NULL); el_set(el, EL_BIND, "\\e[1;5D", "ed-prev-word", NULL); el_set(el, EL_BIND, "\\e\\e[D", "ed-prev-word", NULL); + /* make ^w match ksh behaviour */ + el_set(el, EL_BIND, "^w", "ed-delete-prev-word", NULL); } #endif /* USE_LIBEDIT */