aboutsummaryrefslogtreecommitdiff
path: root/cmd-find.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 3cee9d14..2711c26b 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -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);
}