diff options
author | nicm <nicm> | 2018-01-15 15:30:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-01-15 15:30:03 +0000 |
commit | 53b25635da9656577e28a45f328798c417b50cb4 (patch) | |
tree | 6170ee694aee5c5e9a62cd8988376aacb8d8c5a2 | |
parent | 481703d6698467e459d5b3ff3cd4322bd0385798 (diff) | |
download | rtmux-53b25635da9656577e28a45f328798c417b50cb4.tar.gz rtmux-53b25635da9656577e28a45f328798c417b50cb4.tar.bz2 rtmux-53b25635da9656577e28a45f328798c417b50cb4.zip |
Another redundant check, GitHub issue 1219.
-rw-r--r-- | cmd-find.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -911,16 +911,12 @@ cmd_find_from_client(struct cmd_find_state *fs, struct client *c, int flags) */ fs->w = wp->window; if (cmd_find_best_session_with_window(fs) != 0) { - if (wp != NULL) { - /* - * The window may have been destroyed but the pane - * still on all_window_panes due to something else - * holding a reference. - */ - goto unknown_pane; - } - cmd_find_clear_state(fs, 0); - return (-1); + /* + * The window may have been destroyed but the pane + * still on all_window_panes due to something else + * holding a reference. + */ + goto unknown_pane; } fs->wl = fs->s->curw; fs->w = fs->wl->window; |