aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-28 06:48:44 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-28 06:48:44 +0000
commit2da48644837cd51cfe5a9628140866f06e049e50 (patch)
tree299073ccb81f85b53b47b60324cd1508f8e2621e /window.c
parent309b76fb3255529976ff7ade7e29df8624647312 (diff)
downloadrtmux-2da48644837cd51cfe5a9628140866f06e049e50.tar.gz
rtmux-2da48644837cd51cfe5a9628140866f06e049e50.tar.bz2
rtmux-2da48644837cd51cfe5a9628140866f06e049e50.zip
If select-layout is not given an argument, repply the last layout used in the
window, if any.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index bc6906a8..d1f92920 100644
--- a/window.c
+++ b/window.c
@@ -231,7 +231,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;