Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh sh(1): Assign the tab completion key binding last so ...
details: https://anonhg.NetBSD.org/src/rev/b3acec713685
branches: trunk
changeset: 369448:b3acec713685
user: nia <nia%NetBSD.org@localhost>
date: Wed Aug 17 22:27:17 2022 +0000
description:
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:
bin/sh/histedit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 9e3fd43405ae -r b3acec713685 bin/sh/histedit.c
--- a/bin/sh/histedit.c Wed Aug 17 20:10:29 2022 +0000
+++ b/bin/sh/histedit.c Wed Aug 17 22:27:17 2022 +0000
@@ -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 @@
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 {
Home |
Main Index |
Thread Index |
Old Index