From 9642f0373f94d6015e66806c95ba1570c7bb06ea Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 16 Jul 2009 23:25:21 +0000 Subject: [PATCH] Remove some duplicate code that was causing the status line to be redrawn even when it hadn't changed. --- status.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/status.c b/status.c index 67d0274d..49215adf 100644 --- a/status.c +++ b/status.c @@ -62,10 +62,6 @@ status_redraw(struct client *c) memcpy(&old_status, &c->status, sizeof old_status); screen_init(&c->status, c->tty.sx, 1, 0); - /* Create the target screen. */ - memcpy(&old_status, &c->status, sizeof old_status); - screen_init(&c->status, c->tty.sx, 1, 0); - if (gettimeofday(&c->status_timer, NULL) != 0) fatal("gettimeofday"); memcpy(&stdgc, &grid_default_cell, sizeof gc);