From f2029f9d9e12e65b9ac575136b70b90d8fef8b5b Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 9 May 2018 07:50:03 +0000 Subject: [PATCH] Another check for NULL window if looking for index. --- cmd-find.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd-find.c b/cmd-find.c index 7ce811a7..5ecd4311 100644 --- a/cmd-find.c +++ b/cmd-find.c @@ -1159,7 +1159,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; }