X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/bc258617f323d737755d6043c64ffea2c59b69d4..6d713a99954cf8f800ebf06894840cbd5c6e89ba:/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 6454dbaf4d..48a0e42903 100644 --- a/usr/src/usr.bin/more/command.c +++ b/usr/src/usr.bin/more/command.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)command.c 5.10 (Berkeley) %G%"; +static char sccsid[] = "@(#)command.c 5.11 (Berkeley) %G%"; #endif /* not lint */ /* @@ -206,15 +206,15 @@ prompt() putstr(pbuf); } if (linenums) { - (void)sprintf(pbuf, " line %d", currline(TOP)); + (void)sprintf(pbuf, " line %d", currline(BOTTOM)); 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, " pct %ld%%", - ((100 * pos) / len)); + (void)sprintf(pbuf, "/%ld pct %ld%%", + len, ((100 * pos) / len)); putstr(pbuf); } }