summary refs log tree commit diff
path: root/bin/1sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-09 19:27:15 -0400
committerJune McEnroe <june@causal.agency>2020-03-09 20:01:30 -0400
commit0972708098ae35efd0b0ef632ed6d68301957e6b (patch)
tree96128928820b5df108474bc833499fc4f7e4730a /bin/1sh
parentAdd \? exit status prompt expansion (diff)
downloadsrc-0972708098ae35efd0b0ef632ed6d68301957e6b.tar.gz
src-0972708098ae35efd0b0ef632ed6d68301957e6b.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 '')
-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 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;