From e88b74350fba9e35307f35a8645b23e3cde9200a Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 16 Nov 2016 00:24:03 +0000 Subject: The target validity check used window_pane_visible but that may be false if the pane is zoomed, so instead add a new function to just check if the pane is actually on screen (most commands still want to accept panes invisible by zoom). Also reject panes outside the window for various special targets. Problem reported by Sean Haugh. --- tmux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 41c6a092..18ff4bbb 100644 --- a/tmux.h +++ b/tmux.h @@ -2126,6 +2126,7 @@ int window_pane_set_mode(struct window_pane *, void window_pane_reset_mode(struct window_pane *); void window_pane_key(struct window_pane *, struct client *, struct session *, key_code, struct mouse_event *); +int window_pane_outside(struct window_pane *); int window_pane_visible(struct window_pane *); char *window_pane_search(struct window_pane *, const char *, u_int *); -- cgit