aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog8
-rw-r--r--display.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a99e1aa..1eb3550 100644
--- 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
@@ -5715,4 +5721,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.611 2002/12/11 02:57:30 ukai Exp $
+$Id: ChangeLog,v 1.612 2002/12/11 15:03:06 ukai Exp $
diff --git a/display.c b/display.c
index edd8c8d..ba47bf9 100644
--- a/display.c
+++ b/display.c
@@ -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)