mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 19:08:50 +00:00
Another redundant check, GitHub issue 1219.
This commit is contained in:
parent
481703d669
commit
53b25635da
@ -911,7 +911,6 @@ cmd_find_from_client(struct cmd_find_state *fs, struct client *c, int flags)
|
|||||||
*/
|
*/
|
||||||
fs->w = wp->window;
|
fs->w = wp->window;
|
||||||
if (cmd_find_best_session_with_window(fs) != 0) {
|
if (cmd_find_best_session_with_window(fs) != 0) {
|
||||||
if (wp != NULL) {
|
|
||||||
/*
|
/*
|
||||||
* The window may have been destroyed but the pane
|
* The window may have been destroyed but the pane
|
||||||
* still on all_window_panes due to something else
|
* still on all_window_panes due to something else
|
||||||
@ -919,9 +918,6 @@ cmd_find_from_client(struct cmd_find_state *fs, struct client *c, int flags)
|
|||||||
*/
|
*/
|
||||||
goto unknown_pane;
|
goto unknown_pane;
|
||||||
}
|
}
|
||||||
cmd_find_clear_state(fs, 0);
|
|
||||||
return (-1);
|
|
||||||
}
|
|
||||||
fs->wl = fs->s->curw;
|
fs->wl = fs->s->curw;
|
||||||
fs->w = fs->wl->window;
|
fs->w = fs->wl->window;
|
||||||
fs->wp = fs->w->active; /* use active pane */
|
fs->wp = fs->w->active; /* use active pane */
|
||||||
|
Loading…
Reference in New Issue
Block a user