summaryrefslogtreecommitdiffstats
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2016-11-16 00:24:03 +0000
committernicm <nicm>2016-11-16 00:24:03 +0000
commite88b74350fba9e35307f35a8645b23e3cde9200a (patch)
tree7e97f502b883765b11e70ef6425d95371fa2046c /cmd-select-pane.c
parentc34a79b152e1d27ed87417e6a940358990ab9e79 (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 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index c0374fa7..6ef83473 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -63,7 +63,6 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
const char *style;
if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
-
if (wl->window->last == NULL) {
cmdq_error(item, "no last pane");
return (CMD_RETURN_ERROR);