mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
When asked for a window index, return it even if the window exists.
This commit is contained in:
parent
7804fa1b82
commit
3f0efc050a
@ -454,6 +454,7 @@ cmd_find_get_window_with_session(struct cmd_find_state *fs, const char *window)
|
||||
if (errstr == NULL) {
|
||||
fs->wl = winlink_find_by_index(&fs->s->windows, idx);
|
||||
if (fs->wl != NULL) {
|
||||
fs->idx = fs->wl->idx;
|
||||
fs->w = fs->wl->window;
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user