diff options
author | 2019-03-12 13:14:04 +0000 | |
---|---|---|
committer | 2019-03-12 13:14:04 +0000 | |
commit | 38f68d44f6ff43619f41bf081145c1348db4e464 (patch) | |
tree | cab483f15dcdab99af787f82874a126c64c553b1 | |
parent | Revert to not clearing history on RIS, apparently some bootloaders send (diff) | |
download | wireguard-openbsd-38f68d44f6ff43619f41bf081145c1348db4e464.tar.xz wireguard-openbsd-38f68d44f6ff43619f41bf081145c1348db4e464.zip |
When asked for a window index, return it even if the window exists.
-rw-r--r-- | usr.bin/tmux/cmd-find.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c index 7702ef9e64f..d95c6dcc241 100644 --- a/usr.bin/tmux/cmd-find.c +++ b/usr.bin/tmux/cmd-find.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find.c,v 1.69 2019/03/12 12:49:46 nicm Exp $ */ +/* $OpenBSD: cmd-find.c,v 1.70 2019/03/12 13:14:04 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); } |