mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
Another check for NULL window if looking for index.
This commit is contained in:
parent
f915a4bf0c
commit
f2029f9d9e
@ -1159,6 +1159,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
|
|||||||
/* This will fill in winlink and window. */
|
/* This will fill in winlink and window. */
|
||||||
if (cmd_find_get_window_with_session(fs, window) != 0)
|
if (cmd_find_get_window_with_session(fs, window) != 0)
|
||||||
goto no_window;
|
goto no_window;
|
||||||
|
if (fs->wl != NULL) /* can be NULL if index only */
|
||||||
fs->wp = fs->wl->window->active;
|
fs->wp = fs->wl->window->active;
|
||||||
goto found;
|
goto found;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user