diff options
author | nicm <nicm> | 2017-04-21 17:22:20 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-21 17:22:20 +0000 |
commit | afa4e3ed9c9928c20b8007634538649422f920b5 (patch) | |
tree | cd905b6164983d67973890c8f49a3d34bc08eee6 /cmd-split-window.c | |
parent | 92a77e7654286a8aa4734b36f74ea49f9494311b (diff) | |
download | rtmux-afa4e3ed9c9928c20b8007634538649422f920b5.tar.gz rtmux-afa4e3ed9c9928c20b8007634538649422f920b5.tar.bz2 rtmux-afa4e3ed9c9928c20b8007634538649422f920b5.zip |
Add cmd_find_from_winlink_pane and use it in a couple of places, and
make functions that can't fail void.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index 4d061d94..cb39d8f8 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -172,12 +172,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); |