diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 22:04:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 22:04:02 +0000 |
commit | 73d1558ed0a7feb9bb90767b1852f8a989136c0d (patch) | |
tree | 1772762b5922313ce14620afc10666ed5d832277 /server.c | |
parent | 24cc3626dc811ba28aa39f46b5abde57d61c2118 (diff) |
status-lines -> status, prefix-key -> prefix
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.70 2008-06-19 19:40:34 nicm Exp $ */ +/* $Id: server.c,v 1.71 2008-06-19 22:04:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -322,7 +322,7 @@ server_check_redraw(struct client *c) } xx = c->sx; - yy = c->sy - 1; //options_get_number(&s->options, "status-lines"); + yy = c->sy - 1; if (c->flags & CLIENT_REDRAW) { sx = screen_size_x(s->curw->window->screen); sy = screen_size_y(s->curw->window->screen); @@ -372,7 +372,7 @@ server_check_timers(struct client *c) { struct session *s; struct timespec ts, ts2; - u_int nlines, interval; + u_int interval; if (c == NULL || c->session == NULL) return; @@ -384,8 +384,7 @@ server_check_timers(struct client *c) if (c->message_string != NULL && timespeccmp(&ts, &c->message_timer, >)) server_clear_client_message(c); - nlines = options_get_number(&s->options, "status-lines"); - if (nlines == 0) + if (!options_get_number(&s->options, "status")) return; interval = options_get_number(&s->options, "status-interval"); if (interval == 0) @@ -522,7 +521,7 @@ server_handle_client(struct client *c) struct window *w = c->session->curw->window; int key, prefix; - prefix = options_get_key(&c->session->options, "prefix-key"); + prefix = options_get_key(&c->session->options, "prefix"); while (tty_keys_next(&c->tty, &key) == 0) { server_clear_client_message(c); if (c->prompt_string != NULL) { |