Fix empty argument to splitw/newp and add -k to copy-mode.

This commit is contained in:
nicm
2026-07-08 08:07:42 +00:00
parent 28c2005a2a
commit 25060c3fa5
4 changed files with 8 additions and 5 deletions

View File

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