summary refs log tree commit diff
path: root/bin/1sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-20 18:05:04 -0500
committerJune McEnroe <june@causal.agency>2019-12-20 18:05:04 -0500
commitfc19da5543c6740635578cfce7dfbf69374ec9a6 (patch)
treee599c24a660ff66686c3b0cad96d7fc0d0466f84 /bin/1sh
parentDisable signing commits (diff)
downloadsrc-fc19da5543c6740635578cfce7dfbf69374ec9a6.tar.gz
src-fc19da5543c6740635578cfce7dfbf69374ec9a6.zip
Source .editrc before applying -v or -e
Otherwise a bind -v in .editrc will take precedence and overwrite the ^I
binding for sh-complete.
Diffstat (limited to 'bin/1sh')
-rw-r--r--bin/1sh/histedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/1sh/histedit.c b/bin/1sh/histedit.c
index ae24c1be..12ff54b5 100644
--- a/bin/1sh/histedit.c
+++ b/bin/1sh/histedit.c
@@ -142,12 +142,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;