Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh source .editrc after we initialize so that commands p...



details:   https://anonhg.NetBSD.org/src/rev/cc5262e8ac04
branches:  trunk
changeset: 825018:cc5262e8ac04
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 26 20:28:01 2017 +0000

description:
source .editrc after we initialize so that commands persist!

diffstat:

 bin/sh/histedit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r e52fcf86ce0c -r cc5262e8ac04 bin/sh/histedit.c
--- a/bin/sh/histedit.c Mon Jun 26 18:23:49 2017 +0000
+++ b/bin/sh/histedit.c Mon Jun 26 20:28:01 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: histedit.c,v 1.48 2016/03/16 22:36:40 christos Exp $   */
+/*     $NetBSD: histedit.c,v 1.49 2017/06/26 20:28:01 christos Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: histedit.c,v 1.48 2016/03/16 22:36:40 christos Exp $");
+__RCSID("$NetBSD: histedit.c,v 1.49 2017/06/26 20:28:01 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -152,13 +152,13 @@
                        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", 
                            tabcomplete ? "rl-complete" : "ed-insert", NULL);
+                       el_source(el, NULL);
                }
        } else {
                INTOFF;



Home | Main Index | Thread Index | Old Index