w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit b2391fca2d23b4ea30ee9ae0e518072b33496f09
parent 678a49248e9bc6a2823806e95f2b2fb491c6d236
Author: ukai <ukai>
Date:   Fri, 25 Oct 2002 19:59:48 +0000

* [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:
MChangeLog | 6++++++
Mdisplay.c | 6++++++
Mfile.c | 72++++++++++++++++++++++++++++++++++++------------------------------------
Mversion.c.in | 2+-
4 files changed, 49 insertions(+), 37 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,11 @@ 2002-10-26 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev-en 00780] "Carlo E. Prelz" <fluido@fluido.as> + always print on screen the relative position + * display.c (displayBuffer): relative position + +2002-10-26 Fumitoshi UKAI <ukai@debian.or.jp> + * 0.3.2 release candidate 1 * version.c.in: update diff --git a/display.c b/display.c @@ -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]"); diff --git a/file.c b/file.c @@ -2078,7 +2078,7 @@ is_period_char(int ch) case '}': case '>': #ifndef JP_CHARSET - case 0x203A: /* ">" */ + case 0x203A: /* ">" */ #endif return 1; default: @@ -2096,8 +2096,8 @@ is_beginning_char(int ch) case '`': case '<': #ifndef JP_CHARSET - case 0x2018: /* "`" */ - case 0x2039: /* "<" */ + case 0x2018: /* "`" */ + case 0x2039: /* "<" */ #endif return 1; default: @@ -2110,46 +2110,46 @@ is_word_char(int ch) { #ifndef JP_CHARSET switch (ch) { - case 0x0152: /* "OE" */ - case 0x0153: /* "oe" */ + case 0x0152: /* "OE" */ + case 0x0153: /* "oe" */ return 1; - case 0x0178: /* "Y:" */ /* ? */ - case 0x0192: /* "f" */ /* ? */ - case 0x02C6: /* "^" */ /* ? */ + case 0x0178: /* "Y:" *//* ? */ + case 0x0192: /* "f" *//* ? */ + case 0x02C6: /* "^" *//* ? */ return 0; - case 0x02DC: /* "~" */ - case 0x03BC: /* "\xB5" "mu" */ + case 0x02DC: /* "~" */ + case 0x03BC: /* "\xB5" "mu" */ return 1; - case 0x2002: /* " " "ensp" */ - case 0x2003: /* " " "emsp" */ + case 0x2002: /* " " "ensp" */ + case 0x2003: /* " " "emsp" */ return 0; - case 0x2013: /* "\xAD" "ndash" */ - case 0x2014: /* "-" "mdash" */ - case 0x2018: /* "`" "lsquo" */ - case 0x2019: /* "'" "rsquo" */ - case 0x201A: /* "\xB8" "sbquo" */ - case 0x201C: /* "\"" "ldquo" */ - case 0x201D: /* "\"" "rdquo" */ - case 0x201E: /* ",," "bdquo" */ - case 0x2022: /* "*" "bull" */ /* ? */ - case 0x2030: /* "0/00" "permil" */ - case 0x2032: /* "'" "prime" */ - case 0x2033: /* "\"" "Prime" */ - case 0x2039: /* "<" "lsaquo" */ - case 0x203A: /* ">" "rsaquo" */ - case 0x2044: /* "/" "frasl" */ - case 0x20AC: /* "=C=" "euro" */ - case 0x2122: /* "TM" "trade" */ + case 0x2013: /* "\xAD" "ndash" */ + case 0x2014: /* "-" "mdash" */ + case 0x2018: /* "`" "lsquo" */ + case 0x2019: /* "'" "rsquo" */ + case 0x201A: /* "\xB8" "sbquo" */ + case 0x201C: /* "\"" "ldquo" */ + case 0x201D: /* "\"" "rdquo" */ + case 0x201E: /* ",," "bdquo" */ + case 0x2022: /* "*" "bull" *//* ? */ + case 0x2030: /* "0/00" "permil" */ + case 0x2032: /* "'" "prime" */ + case 0x2033: /* "\"" "Prime" */ + case 0x2039: /* "<" "lsaquo" */ + case 0x203A: /* ">" "rsaquo" */ + case 0x2044: /* "/" "frasl" */ + case 0x20AC: /* "=C=" "euro" */ + case 0x2122: /* "TM" "trade" */ return 1; - case 0x2205: /* "\xF8" "empty" */ /* ? */ + case 0x2205: /* "\xF8" "empty" *//* ? */ return 0; - case 0x2212: /* "-" */ - case 0x223C: /* "~" */ + case 0x2212: /* "-" */ + case 0x223C: /* "~" */ return 1; - case 0x2260: /* "!=" */ /* ? */ - case 0x2261: /* "=" */ /* ? */ - case 0x2264: /* "<=" */ /* ? */ - case 0x2265: /* ">=" */ /* ? */ + case 0x2260: /* "!=" *//* ? */ + case 0x2261: /* "=" *//* ? */ + case 0x2264: /* "<=" *//* ? */ + case 0x2265: /* ">=" *//* ? */ return 0; } #endif diff --git a/version.c.in b/version.c.in @@ -1,5 +1,5 @@ /* $Id$ */ -#define CURRENT_VERSION "w3m/0.3.2rc1" +#define CURRENT_VERSION "w3m/0.3.2rc1+cvs" #ifndef FM_H char *w3m_version = CURRENT_VERSION;