aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-28 10:43:13 +0000
committernicm <nicm>2015-04-28 10:43:13 +0000
commit771744426e3cd3fbf746e5c9554b8119e5f6faf2 (patch)
tree899b0820c292a3692bcd3f88fca3b6b0ac332025 /window.c
parentc2bc84aa4dd30c46930994321de0541edf6a30e9 (diff)
downloadrtmux-771744426e3cd3fbf746e5c9554b8119e5f6faf2.tar.gz
rtmux-771744426e3cd3fbf746e5c9554b8119e5f6faf2.tar.bz2
rtmux-771744426e3cd3fbf746e5c9554b8119e5f6faf2.zip
Add select-layout -o to undo the last layout change (apply the previously
set layout).
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 31f20a1c..e4e41155 100644
--- a/window.c
+++ b/window.c
@@ -344,6 +344,7 @@ window_destroy(struct window *w)
if (w->layout_root != NULL)
layout_free(w);
+ free(w->old_layout);
if (event_initialized(&w->name_timer))
evtimer_del(&w->name_timer);