Module Name: src
Committed By: christos
Date: Wed Sep 14 17:06:16 UTC 2022
Modified Files:
src/bin/csh: csh.c
Log Message:
Update editing before prompt printing.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/bin/csh/csh.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/csh/csh.c
diff -u src/bin/csh/csh.c:1.54 src/bin/csh/csh.c:1.55
--- src/bin/csh/csh.c:1.54 Wed Sep 14 12:15:51 2022
+++ src/bin/csh/csh.c Wed Sep 14 13:06:16 2022
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#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 @@ process(int catch)
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 @@ process(int catch)
seterr = NULL;
}
- updateediting();
/*
* Echo not only on VERBOSE, but also with history expansion. If there