From 53c4f7f187b0599ae67cc898ee60963cff790884 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 9 Mar 2020 19:27:15 -0400 Subject: Source .editrc before applying -v or -e Otherwise a bind -v in .editrc will take precedence and overwrite the ^I binding for sh-complete. --- bin/1sh/histedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/1sh') diff --git a/bin/1sh/histedit.c b/bin/1sh/histedit.c index bb2b14d1..520b4554 100644 --- a/bin/1sh/histedit.c +++ b/bin/1sh/histedit.c @@ -138,12 +138,12 @@ bad: INTON; } if (el) { + el_source(el, NULL); if (Vflag) el_set(el, EL_EDITOR, "vi"); else if (Eflag) el_set(el, EL_EDITOR, "emacs"); el_set(el, EL_BIND, "^I", "sh-complete", NULL); - el_source(el, NULL); } } else { INTOFF; -- cgit 1.4.1