summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-17 07:46:08 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-17 07:46:08 +0000
commitac555340553ab9ebbf4ccb3050150f589f5c2c46 (patch)
tree55b23f0f7e6eb32c03ee51ccf711d5820f1763c2
parent821de39b27df66a3a2a8d1f6ddf933102e4b0204 (diff)
Remove some duplicate code that was causing the status line to be redrawn even
when it hadn't changed.
-rw-r--r--status.c6
1 files changed, 1 insertions, 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 <nicm@users.sourceforge.net>
@@ -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);