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
commit5d6b41cc1b4eae47292305e4e55ab55102cae318 (patch)
tree2457d96c251301280dcffa373b69b95b103a9905 /bin/1sh
parentDisable signing commits (diff)
downloadsrc-5d6b41cc1b4eae47292305e4e55ab55102cae318.tar.gz
src-5d6b41cc1b4eae47292305e4e55ab55102cae318.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 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;
td> 2019-06-02Add RebornJune McEnroe 2019-05-30Add bit to bin.7June McEnroe 2019-05-30Simplify and build bitJune McEnroe 2019-05-29Add xx -p optionJune McEnroe 2019-05-27Add FrontierJune McEnroe 2019-05-27Break nicks with ZWNJJune McEnroe 2019-05-26Add DawnJune McEnroe 2019-05-20Declare vasprintf(3) for GNUJune McEnroe 2019-05-20Fix comparison warning in ttpreJune McEnroe 2019-05-20Add AuthorityJune McEnroe 2019-05-19Specify precedence of unary versions of operatorsJune McEnroe 2019-05-18Add compound assignment operators to orderJune McEnroe 2019-05-15Support simple assignment in orderJune McEnroe 2019-05-15Implement sizeof in orderJune McEnroe 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe 2019-05-10Use val instead of suboptargJune McEnroe 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe