summaryrefslogtreecommitdiffstats
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-07-23 12:26:34 +0000
committertjr <tjr@FreeBSD.org>2002-07-23 12:26:34 +0000
commit12e699af899ab61b9299da0ede6ace8666e265ba (patch)
tree8d1833e9d507db89cb30cbcb7774f0bb7ce02a89 /bin/sh/histedit.c
parent6045b837d61a31cb4012c106c1cd298fe8337b46 (diff)
downloadFreeBSD-src-12e699af899ab61b9299da0ede6ace8666e265ba.zip
FreeBSD-src-12e699af899ab61b9299da0ede6ace8666e265ba.tar.gz
Call el_source() to read the contents of .editrc when line editing is enabled.
Obtained from: NetBSD MFC after: 2 weeks
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index ae39c0b..6cd9fe4 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -132,6 +132,7 @@ bad:
el_set(el, EL_EDITOR, "vi");
else if (Eflag)
el_set(el, EL_EDITOR, "emacs");
+ el_source(el, NULL);
}
} else {
INTOFF;
OpenPOWER on IntegriCloud