summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-04-21 20:01:18 +0100
committerThomas Adam <thomas@xteddy.org>2017-04-21 20:01:18 +0100
commit1f209ed030f9879d873d10341171889af08ae070 (patch)
tree5729e3f2f1e423310eaf19a5fe3a54b5756533bb /cmd-split-window.c
parentc376c5a817973f176894c7ee11bb5675affb3be4 (diff)
parent3c876235cc2d0d36f961e1f026f9feaf5cd22b73 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 7724b9ab..38b1f937 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -171,12 +171,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
if (to_free != NULL)
free((void *)to_free);
- cmd_find_clear_state(&fs, NULL, 0);
- fs.s = s;
- fs.wl = wl;
- fs.w = w;
- fs.wp = new_wp;
- cmd_find_log_state(__func__, &fs);
+ cmd_find_from_winlink_pane(&fs, wl, new_wp);
hooks_insert(s->hooks, item, &fs, "after-split-window");
return (CMD_RETURN_NORMAL);