From ac555340553ab9ebbf4ccb3050150f589f5c2c46 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 17 Jul 2009 07:46:08 +0000 Subject: Remove some duplicate code that was causing the status line to be redrawn even when it hadn't changed. --- status.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/status.c b/status.c index 7b2f52d2..19f8b825 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.95 2009-07-15 17:50:11 nicm Exp $ */ +/* $Id: status.c,v 1.96 2009-07-17 07:46:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); -- cgit v1.2.3