aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-28 23:04:29 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-28 23:04:29 +0000
commitd9dcc5ed44a5cc9f0129af3d2f444c043bcf1ab7 (patch)
treefe7fa5faedc6253859f0feaab36519c8a10ff0ba /window.c
parent1c73e759821dc41ff39ac81b7396913beed41ca0 (diff)
downloadrtmux-d9dcc5ed44a5cc9f0129af3d2f444c043bcf1ab7.tar.gz
rtmux-d9dcc5ed44a5cc9f0129af3d2f444c043bcf1ab7.tar.bz2
rtmux-d9dcc5ed44a5cc9f0129af3d2f444c043bcf1ab7.zip
Sync OpenBSD patchset 191:
If select-layout is not given an argument, reapply the last layout used in the window, if any.
Diffstat (limited to 'window.c')
-rw-r--r--window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/window.c b/window.c
index 161bb75b..b25c45aa 100644
--- a/window.c
+++ b/window.c
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.98 2009-07-23 13:10:38 tcunha Exp $ */
+/* $Id: window.c,v 1.99 2009-07-28 23:04:29 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -229,7 +229,7 @@ window_create1(u_int sx, u_int sy)
TAILQ_INIT(&w->panes);
w->active = NULL;
- w->layout = 0;
+ w->lastlayout = -1;
w->layout_root = NULL;
w->sx = sx;