w3m

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

commit ec3eccea34dd521b76549c28350ef75ba7525cae
parent 4cf027f190de589265c78a22f19500808eb247ad
Author: ukai <ukai>
Date:   Tue,  3 Dec 2002 15:52:37 +0000

[w3m-dev 03514] Effect of tab title
* display.c (redrawNLine): rewrite, do without clrtoeolx()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mdisplay.c | 10+++++-----
2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2002-12-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03514] Effect of tab title + * display.c (redrawNLine): rewrite, do without clrtoeolx() + +2002-12-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03512] Re: HTML parser * table.c (feed_table_tag): HTML_N_SELECT, HTML_N_CAPTION diff --git a/display.c b/display.c @@ -464,20 +464,20 @@ redrawNLine(Buffer *buf, int n) if (t == CurrentTab) bold(); addch('['); - l = strlen(t->currentBuffer->buffername); - if (t->x2 - t->x1 - 2 > l) - addnstr_sup(" ", (t->x2 - t->x1 - 1 - l) / 2); + l = t->x2 - t->x1 - 1 - strlen(t->currentBuffer->buffername); + if (l / 2 > 0) + addnstr_sup(" ", l / 2); if (t == CurrentTab) EFFECT_ACTIVE_START; addstr(t->currentBuffer->buffername); if (t == CurrentTab) EFFECT_ACTIVE_END; - clrtoeolx(); + if ((l + 1) / 2 > 0) + addnstr_sup(" ", (l + 1) / 2); move(t->y, t->x2); addch(']'); if (t == CurrentTab) boldend(); - clrtoeolx(); } #if 0 move(0, COLS - 2);