diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-07-17 14:38:13 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-07-17 14:38:13 +0000 |
commit | 11f81e8134c238c399539c4eec125e891256acd9 (patch) | |
tree | 3a3aa89f8c953572ac78fb12d07171225e510251 /tmux.h | |
parent | ad6a528f611bf793f0c3d4f832f34a1c778068e3 (diff) | |
download | rtmux-11f81e8134c238c399539c4eec125e891256acd9.tar.gz rtmux-11f81e8134c238c399539c4eec125e891256acd9.tar.bz2 rtmux-11f81e8134c238c399539c4eec125e891256acd9.zip |
Sync OpenBSD patchset 735:
Make pane/window wrapping more logical (so with 10 windows, +10 from
window 5 stays in the same place), and tidy the code. From Tiago Cunha.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.570 2010-07-17 14:36:41 tcunha Exp $ */ +/* $Id: tmux.h,v 1.571 2010-07-17 14:38:13 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1824,8 +1824,10 @@ struct winlink *winlink_add(struct winlinks *, struct window *, int); void winlink_remove(struct winlinks *, struct winlink *); struct winlink *winlink_next(struct winlink *); struct winlink *winlink_previous(struct winlink *); -struct winlink *winlink_next_by_number(struct winlink *, int); -struct winlink *winlink_previous_by_number(struct winlink *, int); +struct winlink *winlink_next_by_number(struct winlink *, struct session *, + int); +struct winlink *winlink_previous_by_number(struct winlink *, struct session *, + int); void winlink_stack_push(struct winlink_stack *, struct winlink *); void winlink_stack_remove(struct winlink_stack *, struct winlink *); int window_index(struct window *, u_int *); @@ -1840,6 +1842,10 @@ struct window_pane *window_add_pane(struct window *, u_int); void window_resize(struct window *, u_int, u_int); void window_remove_pane(struct window *, struct window_pane *); struct window_pane *window_pane_at_index(struct window *, u_int); +struct window_pane *window_pane_next_by_number(struct window *, + struct window_pane *, u_int); +struct window_pane *window_pane_previous_by_number(struct window *, + struct window_pane *, u_int); u_int window_pane_index(struct window *, struct window_pane *); u_int window_count_panes(struct window *); void window_destroy_panes(struct window *); |