diff options
author | June McEnroe <june@causal.agency> | 2020-03-09 19:27:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-09 20:01:30 -0400 |
commit | 0972708098ae35efd0b0ef632ed6d68301957e6b (patch) | |
tree | 96128928820b5df108474bc833499fc4f7e4730a /bin/1sh | |
parent | Add \? exit status prompt expansion (diff) | |
download | src-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.c | 2 |
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; |