A few fixes.

This commit is contained in:
Dane Jensen
2026-06-17 15:10:27 -07:00
parent 7d8401d707
commit 3d396f13ed
3 changed files with 4 additions and 4 deletions

View File

@@ -36,8 +36,8 @@ const struct cmd_entry cmd_break_pane_entry = {
.args = { "abdPF:n:s:t:Wx:X:y:Y:", 0, 0, NULL }, .args = { "abdPF:n:s:t:Wx:X:y:Y:", 0, 0, NULL },
.usage = "[-abdPW] [-F format] [-n window-name] [-s src-pane] " .usage = "[-abdPW] [-F format] [-n window-name] [-s src-pane] "
"[-t dst-window] [x width] [y height] [X x-position] " "[-t dst-window] [-x width] [-y height] [-X x-position] "
"[Y y-position]", "[-Y y-position]",
.source = { 's', CMD_FIND_PANE, 0 }, .source = { 's', CMD_FIND_PANE, 0 },
.target = { 't', CMD_FIND_WINDOW, CMD_FIND_WINDOW_INDEX }, .target = { 't', CMD_FIND_WINDOW, CMD_FIND_WINDOW_INDEX },

View File

@@ -380,7 +380,7 @@ cmd_join_pane_tile(struct cmdq_item *item, struct args *args, struct window *w,
layout_save_size(lc); layout_save_size(lc);
lc->flags &= ~LAYOUT_CELL_FLOATING; lc->flags &= ~LAYOUT_CELL_FLOATING;
if (layout_insert_tile(w, lc) == 0) { if (layout_insert_tile(w, lc) == 0) {
cmdq_error(item, "can't tile a pane that is already tiled"); cmdq_error(item, "no space for a new pane");
return (CMD_RETURN_ERROR); return (CMD_RETURN_ERROR);
} }

View File

@@ -136,7 +136,7 @@ cmd_tile_pane_exec(struct cmd *self, struct cmdq_item *item)
layout_save_size(lc); layout_save_size(lc);
lc->flags &= ~LAYOUT_CELL_FLOATING; lc->flags &= ~LAYOUT_CELL_FLOATING;
if (layout_insert_tile(w, lc) == 0) { if (layout_insert_tile(w, lc) == 0) {
cmdq_error(item, "can't tile a pane that is already tiled"); cmdq_error(item, "no space for a new pane");
return (CMD_RETURN_ERROR); return (CMD_RETURN_ERROR);
} }