Fix empty argument to splitw.

This commit is contained in:
Nicholas Marriott
2026-07-08 09:57:49 +01:00
parent c515d8cae0
commit 18d5232804

View File

@@ -101,7 +101,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
flags |= SPAWN_FULLSIZE; flags |= SPAWN_FULLSIZE;
input = args_has(args, 'I'); input = args_has(args, 'I');
if (input) if (input || (count == 1 && *args_string(args, 0) == '\0'))
empty = 1; empty = 1;
else else
empty = args_has(args, 'E'); empty = args_has(args, 'E');