projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
=/^G show total bytes now; document may not always work
[unix-history]
/
usr
/
src
/
usr.bin
/
more
/
command.c
diff --git
a/usr/src/usr.bin/more/command.c
b/usr/src/usr.bin/more/command.c
index
6454dba
..
48a0e42
100644
(file)
--- a/
usr/src/usr.bin/more/command.c
+++ b/
usr/src/usr.bin/more/command.c
@@
-18,7
+18,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)command.c 5.1
0
(Berkeley) %G%";
+static char sccsid[] = "@(#)command.c 5.1
1
(Berkeley) %G%";
#endif /* not lint */
/*
#endif /* not lint */
/*
@@
-206,15
+206,15
@@
prompt()
putstr(pbuf);
}
if (linenums) {
putstr(pbuf);
}
if (linenums) {
- (void)sprintf(pbuf, " line %d", currline(
TOP
));
+ (void)sprintf(pbuf, " line %d", currline(
BOTTOM
));
putstr(pbuf);
}
putstr(pbuf);
}
- if ((pos = position(
TOP
)) != NULL_POSITION) {
+ if ((pos = position(
BOTTOM
)) != NULL_POSITION) {
(void)sprintf(pbuf, " byte %ld", pos);
putstr(pbuf);
if (!ispipe && (len = ch_length())) {
(void)sprintf(pbuf, " byte %ld", pos);
putstr(pbuf);
if (!ispipe && (len = ch_length())) {
- (void)sprintf(pbuf, " pct %ld%%",
- ((100 * pos) / len));
+ (void)sprintf(pbuf, "
/%ld
pct %ld%%",
+
len,
((100 * pos) / len));
putstr(pbuf);
}
}
putstr(pbuf);
}
}