From cada55282a2eaa0d489bde770c9145b44f2584c8 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 14 Apr 2014 14:40:12 +0000 Subject: [PATCH] units(1): parse config file after setting defaults Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode) --- usr.bin/units/units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index 01a12ec2e962..df2913f7be6b 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -724,11 +724,11 @@ main(int argc, char **argv) inhistory = history_init(); el = el_init(argv[0], stdin, stdout, stderr); - el_source(el, NULL); el_set(el, EL_PROMPT, &prompt); el_set(el, EL_EDITOR, "emacs"); el_set(el, EL_SIGNAL, 1); el_set(el, EL_HIST, history, inhistory); + el_source(el, NULL); history(inhistory, &ev, H_SETSIZE, 800); if (inhistory == 0) err(1, "Could not initalize history");