mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
slight renaming.
This commit is contained in:
@@ -88,7 +88,7 @@ cmd_float_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
return (CMD_RETURN_ERROR);
|
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);
|
layout_cell_floating_args(item, args, w, &sx, &sy, &ox, &oy, &cause);
|
||||||
if (cause != NULL) {
|
if (cause != NULL) {
|
||||||
cmdq_error(item, "failed to float pane: %s", cause);
|
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);
|
layout_save_size(lc);
|
||||||
if (layout_cell_insert_tile(w, lc) == 0)
|
if (layout_insert_tile(w, lc) == 0)
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
8
layout.c
8
layout.c
@@ -1796,7 +1796,7 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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;
|
struct layout_cell *lcother, *lcparent;
|
||||||
enum layout_type type;
|
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);
|
lcother = layout_cell_get_neighbour(lc);
|
||||||
if (lcother == NULL) {
|
if (lcother == NULL) {
|
||||||
layout_cell_remove_tile(w, lc->parent);
|
layout_remove_tile(w, lc->parent);
|
||||||
} else if ((lcparent = lcother->parent) != NULL) {
|
} else if ((lcparent = lcother->parent) != NULL) {
|
||||||
type = lcparent->type;
|
type = lcparent->type;
|
||||||
if (type == LAYOUT_TOPBOTTOM)
|
if (type == LAYOUT_TOPBOTTOM)
|
||||||
@@ -1822,7 +1822,7 @@ layout_cell_remove_tile(struct window *w, struct layout_cell *lc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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 window_pane *wp;
|
||||||
struct layout_cell *lcother, *lcparent = lc->parent;
|
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
|
* This is now the only revealed cell in the parent. Reveal the
|
||||||
* parent, then set the child's 'type' dimension.
|
* parent, then set the child's 'type' dimension.
|
||||||
*/
|
*/
|
||||||
layout_cell_insert_tile(w, lcparent);
|
layout_insert_tile(w, lcparent);
|
||||||
if (type == LAYOUT_LEFTRIGHT)
|
if (type == LAYOUT_LEFTRIGHT)
|
||||||
size1 = lcparent->sx;
|
size1 = lcparent->sx;
|
||||||
else
|
else
|
||||||
|
|||||||
4
tmux.h
4
tmux.h
@@ -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 layout_cell *layout_get_tiled_cell(struct cmdq_item *, struct args *,
|
||||||
struct window *, struct window_pane *, int, char **);
|
struct window *, struct window_pane *, int, char **);
|
||||||
int layout_cell_is_tiled(struct layout_cell *);
|
int layout_cell_is_tiled(struct layout_cell *);
|
||||||
int layout_cell_remove_tile(struct window *, struct layout_cell *);
|
int layout_remove_tile(struct window *, struct layout_cell *);
|
||||||
int layout_cell_insert_tile(struct window *, struct layout_cell *);
|
int layout_insert_tile(struct window *, struct layout_cell *);
|
||||||
|
|
||||||
/* layout-custom.c */
|
/* layout-custom.c */
|
||||||
char *layout_dump(struct window *, struct layout_cell *);
|
char *layout_dump(struct window *, struct layout_cell *);
|
||||||
|
|||||||
Reference in New Issue
Block a user