summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2022-09-14 17:06:16 +0000
committerchristos <christos@NetBSD.org>2022-09-14 17:06:16 +0000
commit29c28744fe7da66ca16cefa18a1ae47fd7f87b17 (patch)
tree7a23d1b4bf97c38e9f94dba1e5cfcd1823ce659b /bin
parent2795a37219a56b34eeeff1d0f2d6f69aef35d67e (diff)
Update editing before prompt printing.
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/csh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index cfbee9e2426..1023589c1ce 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -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, 1991, 1993\
#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