mirror of
https://github.com/tmux/tmux.git
synced 2026-01-11 08:21:52 +00:00
Return error if you try to split a floating pane.
This commit is contained in:
@@ -89,6 +89,11 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
struct args_value *av;
|
struct args_value *av;
|
||||||
u_int count = args_count(args), curval = 0;
|
u_int count = args_count(args), curval = 0;
|
||||||
|
|
||||||
|
if (wp->layout_cell == NULL) {
|
||||||
|
cmdq_error(item, "can't split a floating pane");
|
||||||
|
return (CMD_RETURN_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
type = LAYOUT_TOPBOTTOM;
|
type = LAYOUT_TOPBOTTOM;
|
||||||
if (args_has(args, 'h'))
|
if (args_has(args, 'h'))
|
||||||
type = LAYOUT_LEFTRIGHT;
|
type = LAYOUT_LEFTRIGHT;
|
||||||
|
|||||||
Reference in New Issue
Block a user