summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authortb@openbsd.org <tb@openbsd.org>2019-07-10 07:04:27 +0000
committerDamien Miller <djm@mindrot.org>2019-07-12 14:07:31 +1000
commitb9b0f2ac9625933db53a35b1c1ce423876630558 (patch)
tree69281a3d907ec6f47fef1c47efa83516f5558acb /sftp.c
parent8729498a5d239980a91d32f031b34e8c58c52f62 (diff)
upstream: Fix a typo and make <esc><right> move right to the
closest end of a word just like <esc><left> moves left to the closest beginning of a word. ok djm OpenBSD-Commit-ID: 6afe01b05ed52d8b12eb1fda6e9af5afb5e198ee
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index d3e118919..fa833d25d 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.193 2019/06/19 20:12:44 jmc Exp $ */ 1/* $OpenBSD: sftp.c,v 1.194 2019/07/10 07:04:27 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -2189,7 +2189,7 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
2189 el_set(el, EL_BIND, "^I", "ftp-complete", NULL); 2189 el_set(el, EL_BIND, "^I", "ftp-complete", NULL);
2190 /* enable ctrl-left-arrow and ctrl-right-arrow */ 2190 /* enable ctrl-left-arrow and ctrl-right-arrow */
2191 el_set(el, EL_BIND, "\\e[1;5C", "em-next-word", NULL); 2191 el_set(el, EL_BIND, "\\e[1;5C", "em-next-word", NULL);
2192 el_set(el, EL_BIND, "\\e[5C", "em-next-word", NULL); 2192 el_set(el, EL_BIND, "\\e\\e[C", "em-next-word", NULL);
2193 el_set(el, EL_BIND, "\\e[1;5D", "ed-prev-word", NULL); 2193 el_set(el, EL_BIND, "\\e[1;5D", "ed-prev-word", NULL);
2194 el_set(el, EL_BIND, "\\e\\e[D", "ed-prev-word", NULL); 2194 el_set(el, EL_BIND, "\\e\\e[D", "ed-prev-word", NULL);
2195 /* make ^w match ksh behaviour */ 2195 /* make ^w match ksh behaviour */