Move the shuffle code from new-window -a into a function and add a -a

flag for move-window too. From Thomas Adam.
This commit is contained in:
nicm
2015-06-17 16:50:28 +00:00
parent 021cdbe1c0
commit 0ff335961e
5 changed files with 45 additions and 20 deletions

1
tmux.h
View File

@@ -2166,6 +2166,7 @@ struct window_pane *window_pane_find_right(struct window_pane *);
void window_set_name(struct window *, const char *);
void window_remove_ref(struct window *);
void winlink_clear_flags(struct winlink *);
int winlink_shuffle_up(struct session *, struct winlink *);
/* layout.c */
u_int layout_count_cells(struct layout_cell *);