aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-03 15:52:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-03 15:52:37 +0000
commite1d37e57bcaef62e798c2df024a1f7977c5d009a (patch)
treebbd9b6de4ac62385e98f51115c71bed0b74b4099
parent[w3m-dev 03512] Re: HTML parser (diff)
downloadw3m-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--ChangeLog7
-rw-r--r--display.c12
2 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index b6227d6..33abf12 100644
--- 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
@@ -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 $
diff --git a/display.c b/display.c
index 59846ac..bfdd263 100644
--- a/display.c
+++ b/display.c
@@ -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);