From 41e633acf5d08cbd8976771bd2b74f14abda3969 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 16 Oct 2016 22:06:40 +0000 Subject: Use the notify name string instead of going via an enum and change existing hooks to use notifys instead. --- cmd-find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-find.c') diff --git a/cmd-find.c b/cmd-find.c index 5008c1a5..4e88fe43 100644 --- a/cmd-find.c +++ b/cmd-find.c @@ -228,7 +228,7 @@ cmd_find_best_winlink_with_window(struct cmd_find_state *fs) struct winlink *wl, *wl_loop; wl = NULL; - if (fs->s->curw->window == fs->w) + if (fs->s->curw != NULL && fs->s->curw->window == fs->w) wl = fs->s->curw; else { RB_FOREACH(wl_loop, winlinks, &fs->s->windows) { -- cgit