mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
If looking for an index, don't fill in window when given a session.
This commit is contained in:
parent
14d8cd6445
commit
e36fab2f70
@ -434,9 +434,11 @@ cmd_find_get_window(struct cmd_find_state *fs, const char *window)
|
|||||||
|
|
||||||
/* Otherwise try as a session itself. */
|
/* Otherwise try as a session itself. */
|
||||||
if (cmd_find_get_session(fs, window) == 0) {
|
if (cmd_find_get_session(fs, window) == 0) {
|
||||||
|
if (~fs->flags & CMD_FIND_WINDOW_INDEX) {
|
||||||
fs->wl = fs->s->curw;
|
fs->wl = fs->s->curw;
|
||||||
fs->idx = fs->wl->idx;
|
|
||||||
fs->w = fs->wl->window;
|
fs->w = fs->wl->window;
|
||||||
|
fs->idx = fs->wl->idx;
|
||||||
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user