summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-28 06:48:44 +0000
committernicm <nicm@openbsd.org>2009-07-28 06:48:44 +0000
commitba17146de3f7883eb78fa8899ae04fab90724b2a (patch)
tree080d54735e2bdab8337b7ba9ddf8f89e2ef11a45 /usr.bin/tmux/window.c
parentprint the chipset name in the dmesg so it is possible to tell (diff)
downloadwireguard-openbsd-ba17146de3f7883eb78fa8899ae04fab90724b2a.tar.xz
wireguard-openbsd-ba17146de3f7883eb78fa8899ae04fab90724b2a.zip
If select-layout is not given an argument, repply the last layout used in the
window, if any.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index d03d9538cda..df914543055 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.16 2009/07/22 21:34:36 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.17 2009/07/28 06:48:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;