Module Name: src Committed By: nia Date: Wed Aug 17 22:27:17 UTC 2022
Modified Files: src/bin/sh: histedit.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/bin/sh/histedit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/sh/histedit.c diff -u src/bin/sh/histedit.c:1.61 src/bin/sh/histedit.c:1.62 --- src/bin/sh/histedit.c:1.61 Tue Feb 8 20:39:59 2022 +++ src/bin/sh/histedit.c Wed Aug 17 22:27:17 2022 @@ -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 {