From 73d1558ed0a7feb9bb90767b1852f8a989136c0d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 19 Jun 2008 22:04:02 +0000 Subject: status-lines -> status, prefix-key -> prefix --- status.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'status.c') diff --git a/status.c b/status.c index b54b8394..599c53e9 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.34 2008-06-19 20:53:04 nicm Exp $ */ +/* $Id: status.c,v 1.35 2008-06-19 22:04:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -42,8 +42,7 @@ status_redraw(struct client *c) struct tm *tm; int larrow, rarrow; - yy = options_get_number(&s->options, "status-lines"); - if (c->sy == 0 || yy == 0) + if (c->sy == 0 || !options_get_number(&s->options, "status")) goto off; larrow = rarrow = 0; @@ -51,7 +50,7 @@ status_redraw(struct client *c) fatal("clock_gettime failed"); colr = options_get_colours(&s->options, "status-colour"); - yy = c->sy - yy; + yy = c->sy - 1; if (yy == 0) goto blank; -- cgit