w3m

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

commit 282ed32931ec20b5fed75dce1b27f7e640478422
parent f84ff4b2e2f23494da3f79ace42a4fb98cc2ecae
Author: ukai <ukai>
Date:   Wed, 11 Dec 2002 15:03:06 +0000

[w3m-dev 03558] long title is displayed over tab region
* display.c (redrawNLine): check l < 0
			use addnstr
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 6++++++
Mdisplay.c | 4+++-
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2002-12-12 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03558] long title is displayed over tab region + * display.c (redrawNLine): check l < 0 + use addnstr + 2002-12-11 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03554] Re: Undo/Redo diff --git a/display.c b/display.c @@ -475,11 +475,13 @@ redrawNLine(Buffer *buf, int n) bold(); addch('['); l = t->x2 - t->x1 - 1 - strlen(t->currentBuffer->buffername); + if (l < 0) + l = 0; if (l / 2 > 0) addnstr_sup(" ", l / 2); if (t == CurrentTab) EFFECT_ACTIVE_START; - addstr(t->currentBuffer->buffername); + addnstr(t->currentBuffer->buffername, t->x2 - t->x1 - l); if (t == CurrentTab) EFFECT_ACTIVE_END; if ((l + 1) / 2 > 0)