summaryrefslogtreecommitdiffstats
path: root/cmd-resize-pane.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 /cmd-resize-pane.c
parentb831f8635409883e2ad2b6feedf05821f8f2ea84 (diff)
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 'cmd-resize-pane.c')
-rw-r--r--cmd-resize-pane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c
index 1380b283..cabf1da4 100644
--- a/cmd-resize-pane.c
+++ b/cmd-resize-pane.c
@@ -103,6 +103,7 @@ cmd_resize_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
}
}
+ layout_list_add(wp->window);
if (args_has(self->args, 'L'))
layout_resize_pane(wp, LAYOUT_LEFTRIGHT, -adjust);
else if (args_has(self->args, 'R'))