SCCS-vsn: usr.bin/more/command.c 5.16
-static char sccsid[] = "@(#)command.c 5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)command.c 5.16 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
- else if (linenums) {
- (void)sprintf(pbuf, ": %d", currline(TOP));
+ else if (!ispipe &&
+ (pos = position(BOTTOM)) != NULL_POSITION &&
+ (len = ch_length())) {
+ (void)sprintf(pbuf, " (%ld%%)", ((100 * pos) / len));
putstr(pbuf);
}
so_exit();
putstr(pbuf);
}
so_exit();