[w3m-dev 03514] Effect of tab title
* display.c (redrawNLine): rewrite, do without clrtoeolx() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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
|
||||
@@ -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 $
|
||||
|
12
display.c
12
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);
|
||||
|
Reference in New Issue
Block a user