aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-04-01 13:18:38 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-04-01 13:18:38 +0000
commit85f5485cb5e46d6d574b7a1b8c1357c85b528e2b (patch)
tree302c5d6ffd1bc655d2ab33c808df7d0cc1e2acf2 /window.c
parentb831f8635409883e2ad2b6feedf05821f8f2ea84 (diff)
downloadrtmux-85f5485cb5e46d6d574b7a1b8c1357c85b528e2b.tar.gz
rtmux-85f5485cb5e46d6d574b7a1b8c1357c85b528e2b.tar.bz2
rtmux-85f5485cb5e46d6d574b7a1b8c1357c85b528e2b.zip
Add a layout history which can be stepped through with select-layout -u
and -U commands (bound to 'u' and 'U' by default).
Diffstat (limited to 'window.c')
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index 34214e71..036bb941 100644
--- a/window.c
+++ b/window.c
@@ -292,6 +292,7 @@ window_create1(u_int sx, u_int sy)
w->lastlayout = -1;
w->layout_root = NULL;
+ TAILQ_INIT(&w->layout_list);
w->sx = sx;
w->sy = sy;