aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--screen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 7e3e51d7f..8d14376ff 100644
--- a/screen.c
+++ b/screen.c
@@ -68,8 +68,15 @@ static void
paint_top_window(char *header, int volume, int clear)
{
static int prev_volume = -1;
+ static int prev_header_len = -1;
WINDOW *w = screen->top_window.w;
+ if(prev_header_len!=strlen(header))
+ {
+ prev_header_len = strlen(header);
+ clear = 1;
+ }
+
if(clear)
{
wclear(w);