summaryrefslogtreecommitdiff
path: root/usr.bin/more/more.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/more/more.c')
-rw-r--r--usr.bin/more/more.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/more/more.c b/usr.bin/more/more.c
index 0dd282bec90..a853147bc03 100644
--- a/usr.bin/more/more.c
+++ b/usr.bin/more/more.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: more.c,v 1.3 1996/10/14 03:45:46 etheisen Exp $ */
+/* $OpenBSD: more.c,v 1.4 1996/10/14 03:54:59 etheisen Exp $ */
/*-
* Copyright (c) 1980 The Regents of the University of California.
* All rights reserved.
@@ -714,7 +714,12 @@ char *filename;
}
if (clreol)
cleareol ();
- pr("--More--");
+ /* XXX - evil global vars */
+ if(fnames[fnum] != NULL) {
+ promptlen += prtf ("%s ", fnames[fnum]);
+ }
+ else
+ pr("--More--");
if (filename != NULL) {
promptlen += prtf ("(Next file: %s)", filename);
}