aboutsummaryrefslogtreecommitdiff
path: root/cmd-find.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-05-09 11:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2018-05-09 11:02:26 +0100
commit9e1093b7d7335cd42c0616b61f06d74fd6f7002b (patch)
tree65766e953b5473c07888c0df6890ed28d8ef09c9 /cmd-find.c
parentb2a2c3a1e90756313b6709905f189934123f85ed (diff)
parentf2029f9d9e12e65b9ac575136b70b90d8fef8b5b (diff)
downloadrtmux-9e1093b7d7335cd42c0616b61f06d74fd6f7002b.tar.gz
rtmux-9e1093b7d7335cd42c0616b61f06d74fd6f7002b.tar.bz2
rtmux-9e1093b7d7335cd42c0616b61f06d74fd6f7002b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 2d3adf40..0c86e548 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -1158,7 +1158,8 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
/* This will fill in winlink and window. */
if (cmd_find_get_window_with_session(fs, window) != 0)
goto no_window;
- fs->wp = fs->wl->window->active;
+ if (fs->wl != NULL) /* can be NULL if index only */
+ fs->wp = fs->wl->window->active;
goto found;
}