diff options
author | nicm <nicm> | 2015-04-28 12:09:24 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-28 12:09:24 +0000 |
commit | e36fab2f7093e018de51af35e2c37b7a11201c2e (patch) | |
tree | 3b707e73a6bfce8139821f37dda55d2b3e121b09 /cmd-find.c | |
parent | 14d8cd64455e34c1c3f5803210e1162d4a03fb48 (diff) |
If looking for an index, don't fill in window when given a session.
Diffstat (limited to 'cmd-find.c')
-rw-r--r-- | cmd-find.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -434,9 +434,11 @@ cmd_find_get_window(struct cmd_find_state *fs, const char *window) /* Otherwise try as a session itself. */ if (cmd_find_get_session(fs, window) == 0) { - fs->wl = fs->s->curw; - fs->idx = fs->wl->idx; - fs->w = fs->wl->window; + if (~fs->flags & CMD_FIND_WINDOW_INDEX) { + fs->wl = fs->s->curw; + fs->w = fs->wl->window; + fs->idx = fs->wl->idx; + } return (0); } |