diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-03 15:52:37 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-03 15:52:37 +0000 |
commit | e1d37e57bcaef62e798c2df024a1f7977c5d009a (patch) | |
tree | bbd9b6de4ac62385e98f51115c71bed0b74b4099 | |
parent | [w3m-dev 03512] Re: HTML parser (diff) | |
download | w3m-e1d37e57bcaef62e798c2df024a1f7977c5d009a.tar.gz w3m-e1d37e57bcaef62e798c2df024a1f7977c5d009a.zip |
[w3m-dev 03514] Effect of tab title
* display.c (redrawNLine): rewrite, do without clrtoeolx()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | display.c | 12 |
2 files changed, 12 insertions, 7 deletions
@@ -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 @@ -5361,4 +5366,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.578 2002/12/03 15:49:52 ukai Exp $ +$Id: ChangeLog,v 1.579 2002/12/03 15:52:37 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.41 2002/11/27 16:32:52 ukai Exp $ */ +/* $Id: display.c,v 1.42 2002/12/03 15:52:38 ukai Exp $ */ #include <signal.h> #include "fm.h" @@ -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); |