Source-Changes-HG archive

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

[src/trunk]: src/bin/csh Update editing before prompt printing.



details:   https://anonhg.NetBSD.org/src/rev/e794a1568ac5
branches:  trunk
changeset: 370065:e794a1568ac5
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 14 17:06:16 2022 +0000

description:
Update editing before prompt printing.

diffstat:

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

diffs (34 lines):

diff -r 2abda0567efe -r e794a1568ac5 bin/csh/csh.c
--- a/bin/csh/csh.c     Wed Sep 14 16:15:51 2022 +0000
+++ b/bin/csh/csh.c     Wed Sep 14 17:06:16 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: csh.c,v 1.54 2022/09/14 16:15:51 christos Exp $ */
+/* $NetBSD: csh.c,v 1.55 2022/09/14 17:06:16 christos Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)csh.c      8.2 (Berkeley) 10/12/93";
 #else
-__RCSID("$NetBSD: csh.c,v 1.54 2022/09/14 16:15:51 christos Exp $");
+__RCSID("$NetBSD: csh.c,v 1.55 2022/09/14 17:06:16 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1139,6 +1139,7 @@
            pnote();
        if (intty && prompt && evalvec == 0) {
            mailchk();
+           updateediting();
            /*
             * If we are at the end of the input buffer then we are going to
             * read fresh stuff. Otherwise, we are rereading input and don't
@@ -1153,7 +1154,6 @@
            seterr = NULL;
        }
 
-       updateediting();
 
        /*
         * Echo not only on VERBOSE, but also with history expansion. If there



Home | Main Index | Thread Index | Old Index