diff options
author | nicm <nicm> | 2019-03-12 13:14:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-12 13:14:04 +0000 |
commit | 3f0efc050aabcc68115f37764d49c1c73d98437f (patch) | |
tree | 5b1fdbe208f3c2557e7da5163ca1d4678f206d95 /cmd-find.c | |
parent | 7804fa1b82b14a28a6bfe72d5ee7aebd03584333 (diff) |
When asked for a window index, return it even if the window exists.
Diffstat (limited to 'cmd-find.c')
-rw-r--r-- | cmd-find.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |