diff options
author | nicm <nicm> | 2018-05-09 07:50:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-05-09 07:50:03 +0000 |
commit | f2029f9d9e12e65b9ac575136b70b90d8fef8b5b (patch) | |
tree | 5699e4534eb179daf26205833a6d186f8c0f6e35 | |
parent | f915a4bf0c035968b07d5660760cf7f6503b016c (diff) | |
download | rtmux-f2029f9d9e12e65b9ac575136b70b90d8fef8b5b.tar.gz rtmux-f2029f9d9e12e65b9ac575136b70b90d8fef8b5b.tar.bz2 rtmux-f2029f9d9e12e65b9ac575136b70b90d8fef8b5b.zip |
Another check for NULL window if looking for index.
-rw-r--r-- | cmd-find.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |