summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_args.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
committermichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
commit418c0bbade1dcb322b7abdbed4064993de8086c2 (patch)
tree4bad4d39a1f432f68cae3d673074f4b724aba879 /usr.bin/vi/ex/ex_args.c
parent445816164da4c953591f89549fdd9bc8825aa8c8 (diff)
nvi 1.73
Diffstat (limited to 'usr.bin/vi/ex/ex_args.c')
-rw-r--r--usr.bin/vi/ex/ex_args.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_args.c b/usr.bin/vi/ex/ex_args.c
index ba3e7801549..bc37109fc13 100644
--- a/usr.bin/vi/ex/ex_args.c
+++ b/usr.bin/vi/ex/ex_args.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)ex_args.c 10.14 (Berkeley) 4/27/96";
+static const char sccsid[] = "@(#)ex_args.c 10.16 (Berkeley) 7/13/96";
#endif /* not lint */
#include <sys/types.h>
@@ -99,6 +99,9 @@ ex_next(sp, cmdp)
if ((frp = file_add(sp, *sp->cargv)) == NULL)
return (1);
noargs = 0;
+
+ /* Display a file count with the welcome message. */
+ F_SET(sp, SC_STATUS_CNT);
} else {
if ((frp = file_add(sp, sp->cargv[1])) == NULL)
return (1);
@@ -149,6 +152,9 @@ ex_N_next(sp, cmdp)
/* The arguments are a replacement file list. */
new->cargv = new->argv = ex_buildargv(sp, cmdp, NULL);
+ /* Display a file count with the welcome message. */
+ F_SET(new, SC_STATUS_CNT);
+
/* Set up the switch. */
sp->nextdisp = new;
F_SET(sp, SC_SSWITCH);
@@ -237,7 +243,9 @@ ex_rew(sp, cmdp)
(FL_ISSET(cmdp->iflags, E_C_FORCE) ? FS_FORCE : 0)))
return (1);
- F_SET(sp, SC_FSWITCH);
+ /* Switch and display a file count with the welcome message. */
+ F_SET(sp, SC_FSWITCH | SC_STATUS_CNT);
+
return (0);
}