diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-04-21 14:09:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-04-21 14:09:45 +0000 |
commit | d40f4aa2705319f5974337e1f241c3a6b40694b4 (patch) | |
tree | fcf1393e69b1d1848da174c3ca2e1dfe2e725814 /usr.bin/tmux/cmd-find.c | |
parent | d5fb3ffc9ea030f32810ab4855858bde81269048 (diff) |
More unnecessary arguments now winlink points back to session.
Diffstat (limited to 'usr.bin/tmux/cmd-find.c')
-rw-r--r-- | usr.bin/tmux/cmd-find.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c index 84e9756afa3..dafab9ac574 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.45 2017/04/21 14:01:19 nicm Exp $ */ +/* $OpenBSD: cmd-find.c,v 1.46 2017/04/21 14:09:44 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -895,12 +895,11 @@ cmd_find_from_session(struct cmd_find_state *fs, struct session *s) /* Find state from a winlink. */ int -cmd_find_from_winlink(struct cmd_find_state *fs, struct session *s, - struct winlink *wl) +cmd_find_from_winlink(struct cmd_find_state *fs, struct winlink *wl) { cmd_find_clear_state(fs, NULL, 0); - fs->s = s; + fs->s = wl->session; fs->wl = wl; fs->w = wl->window; fs->wp = wl->window->active; |