diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-11 15:03:06 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-11 15:03:06 +0000 |
commit | 96c21a216942a2aceaa04178a0769865d09dde7a (patch) | |
tree | fc8eba9d1e435d2370d886e37ebbe806b05f2511 /display.c | |
parent | [w3m-dev 03554] Re: Undo/Redo (diff) | |
download | w3m-96c21a216942a2aceaa04178a0769865d09dde7a.tar.gz w3m-96c21a216942a2aceaa04178a0769865d09dde7a.zip |
[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 (limited to 'display.c')
-rw-r--r-- | display.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.44 2002/12/05 16:29:04 ukai Exp $ */ +/* $Id: display.c,v 1.45 2002/12/11 15:03:15 ukai Exp $ */ #include <signal.h> #include "fm.h" @@ -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) |