Tidy up error messages from split-window.

This commit is contained in:
nicm
2026-06-13 18:30:16 +00:00
parent 654758e622
commit b182791052
2 changed files with 22 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
else
lc = layout_get_tiled_cell(item, args, w, wp, flags, &cause);
if (cause != NULL) {
cmdq_error(item, "size or position %s", cause);
cmdq_error(item, "%s", cause);
free(cause);
return (CMD_RETURN_ERROR);
}