summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-13 12:01:11 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-13 12:01:11 +0100
commit6270392d0448b9c949dcc6698962446ff5988383 (patch)
treedaa1be979c7b8fbd8e18c1fdcb0a9ba8d2fcc01e /cmd-split-window.c
parent6551f4bb3b651aa2dba77a98cc42828737b88306 (diff)
parent4d9e6ea3106ea06afa4583254549d525b31ed277 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 81db078a..c3c32abb 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -177,6 +177,13 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
}
notify_window_layout_changed(w);
+ cmd_find_clear_state(&cmdq->current, NULL, 0);
+ cmdq->current.s = s;
+ cmdq->current.wl = wl;
+ cmdq->current.w = wl->window;
+ cmdq->current.wp = new_wp;
+ cmd_find_log_state(__func__, &cmdq->current);
+
if (to_free != NULL)
free((void *)to_free);
return (CMD_RETURN_NORMAL);