diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-16 00:24:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-16 00:24:04 +0000 |
commit | 1e828adaeaeb19fe52759f690961a5675fcea4f9 (patch) | |
tree | 3d40bc441712b89d443302549e77edf60321df03 /usr.bin/tmux/tmux.h | |
parent | d884ef7923c6ee677503ef42b15ad03ec8c3ae38 (diff) |
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.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 9dd63f50c32..bbb1f2758bf 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.677 2016/11/15 15:17:28 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.678 2016/11/16 00:24:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 *); |