aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-10-25 19:59:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-10-25 19:59:48 +0000
commit738e4a6e31cf25577a49f8a1d37b240d3cfd4725 (patch)
tree815f9f650c01c9dd5aa590bdd8a688f174e44c5c /display.c
parent* 0.3.2 release candidate 1 (diff)
downloadw3m-738e4a6e31cf25577a49f8a1d37b240d3cfd4725.tar.gz
w3m-738e4a6e31cf25577a49f8a1d37b240d3cfd4725.zip
* [w3m-dev-en 00780] "Carlo E. Prelz" <fluido@fluido.as>
always print on screen the relative position * display.c (displayBuffer): relative position From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'display.c')
-rw-r--r--display.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/display.c b/display.c
index 2a95716..02a2db3 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.22 2002/03/15 18:33:32 ukai Exp $ */
+/* $Id: display.c,v 1.23 2002/10/25 19:59:51 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -319,6 +319,12 @@ displayBuffer(Buffer *buf, int mode)
#endif /* not USE_MOUSE */
msg = Strnew();
Strcat_charp(msg, "Viewing");
+ if (buf->currentLine != NULL && buf->lastLine != NULL)
+ Strcat(msg, Sprintf(" %3d%%",
+ (int)((double)buf->currentLine->real_linenumber
+ * 100.0 /
+ (double)buf->lastLine->real_linenumber
+ + 0.5)));
#ifdef USE_SSL
if (buf->ssl_certificate)
Strcat_charp(msg, "[SSL]");