slight renaming.

This commit is contained in:
Dane Jensen
2026-06-10 13:49:14 -07:00
parent 64ded18960
commit 5dad31b06e
3 changed files with 8 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ cmd_float_pane_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
}
layout_cell_remove_tile(w, lc);
layout_remove_tile(w, lc);
layout_cell_floating_args(item, args, w, &sx, &sy, &ox, &oy, &cause);
if (cause != NULL) {
cmdq_error(item, "failed to float pane: %s", cause);
@@ -134,7 +134,7 @@ cmd_tile_pane_exec(struct cmd *self, struct cmdq_item *item)
}
layout_save_size(lc);
if (layout_cell_insert_tile(w, lc) == 0)
if (layout_insert_tile(w, lc) == 0)
return (CMD_RETURN_ERROR);

View File

@@ -1796,7 +1796,7 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args,
}
int
layout_cell_remove_tile(struct window *w, struct layout_cell *lc)
layout_remove_tile(struct window *w, struct layout_cell *lc)
{
struct layout_cell *lcother, *lcparent;
enum layout_type type;
@@ -1807,7 +1807,7 @@ layout_cell_remove_tile(struct window *w, struct layout_cell *lc)
lcother = layout_cell_get_neighbour(lc);
if (lcother == NULL) {
layout_cell_remove_tile(w, lc->parent);
layout_remove_tile(w, lc->parent);
} else if ((lcparent = lcother->parent) != NULL) {
type = lcparent->type;
if (type == LAYOUT_TOPBOTTOM)
@@ -1822,7 +1822,7 @@ layout_cell_remove_tile(struct window *w, struct layout_cell *lc)
}
int
layout_cell_insert_tile(struct window *w, struct layout_cell *lc)
layout_insert_tile(struct window *w, struct layout_cell *lc)
{
struct window_pane *wp;
struct layout_cell *lcother, *lcparent = lc->parent;
@@ -1845,7 +1845,7 @@ layout_cell_insert_tile(struct window *w, struct layout_cell *lc)
* This is now the only revealed cell in the parent. Reveal the
* parent, then set the child's 'type' dimension.
*/
layout_cell_insert_tile(w, lcparent);
layout_insert_tile(w, lcparent);
if (type == LAYOUT_LEFTRIGHT)
size1 = lcparent->sx;
else

4
tmux.h
View File

@@ -3593,8 +3593,8 @@ struct layout_cell *layout_get_floating_cell(struct cmdq_item *, struct args *,
struct layout_cell *layout_get_tiled_cell(struct cmdq_item *, struct args *,
struct window *, struct window_pane *, int, char **);
int layout_cell_is_tiled(struct layout_cell *);
int layout_cell_remove_tile(struct window *, struct layout_cell *);
int layout_cell_insert_tile(struct window *, struct layout_cell *);
int layout_remove_tile(struct window *, struct layout_cell *);
int layout_insert_tile(struct window *, struct layout_cell *);
/* layout-custom.c */
char *layout_dump(struct window *, struct layout_cell *);