diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-03 21:42:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-03 21:42:37 +0000 |
commit | 9e6090a7a2a0d25499bce0dc68fd67289f3a5e39 (patch) | |
tree | fd99a49a5ae948c9a1eb618cae7fd26e68d554a4 /resize.c | |
parent | 85d520c41e74056e59f11b5d1f6dd3f5602fa17a (diff) |
Per-session configuration options.
Diffstat (limited to 'resize.c')
-rw-r--r-- | resize.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: resize.c,v 1.10 2008-06-01 20:32:41 nicm Exp $ */ +/* $Id: resize.c,v 1.11 2008-06-03 21:42:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -48,7 +48,7 @@ recalculate_sizes(void) struct session *s; struct client *c; struct window *w; - u_int i, j, ssx, ssy; + u_int i, j, ssx, ssy, slines; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); @@ -73,9 +73,10 @@ recalculate_sizes(void) } s->flags &= ~SESSION_UNATTACHED; - if (ssy < status_lines) - ssy = status_lines + 1; - ssy -= status_lines; + slines = options_get_number(&s->options, "status-lines"); + if (ssy < slines) + ssy = slines + 1; + ssy -= slines; if (s->sx == ssx && s->sy == ssy) continue; |