summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2022-08-17 22:27:17 +0000
committernia <nia@NetBSD.org>2022-08-17 22:27:17 +0000
commit4131a80291f83e64a372c1e4ca5f21ce1133e4e4 (patch)
tree3a3f29b984664524571feac1c78e9feb82a5bb93 /bin
parent00c8efe5501f4ce693fd45bef026f3cab6c1b923 (diff)
sh(1): Assign the tab completion key binding last so a user having
"bind -v" or "bind -e" in ~/.editrc doesn't cause tab completion to no longer function.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/histedit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index a883acad9b4..c9df2c3c91f 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: histedit.c,v 1.61 2022/02/08 20:39:59 rillig Exp $ */
+/* $NetBSD: histedit.c,v 1.62 2022/08/17 22:27:17 nia Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: histedit.c,v 1.61 2022/02/08 20:39:59 rillig Exp $");
+__RCSID("$NetBSD: histedit.c,v 1.62 2022/08/17 22:27:17 nia Exp $");
#endif
#endif /* not lint */
@@ -180,9 +180,9 @@ bad:
el_set(el, EL_EDITOR, "vi");
else if (Eflag)
el_set(el, EL_EDITOR, "emacs");
+ el_source(el, lookupvar("EDITRC"));
el_set(el, EL_BIND, "^I",
tabcomplete ? "rl-complete" : "ed-insert", NULL);
- el_source(el, lookupvar("EDITRC"));
INTON;
}
} else {