summary refs log tree commit diff
path: root/bin
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
commit53c4f7f187b0599ae67cc898ee60963cff790884 (patch)
treea54df42f4271666252528e238dfff461643a4746 /bin
parentAdd \? exit status prompt expansion (diff)
downloadsrc-53c4f7f187b0599ae67cc898ee60963cff790884.tar.gz
src-53c4f7f187b0599ae67cc898ee60963cff790884.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;