diff options
author | nicm <nicm> | 2016-01-16 00:36:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-01-16 00:36:53 +0000 |
commit | c9815307ebe8b729504d383904ae3ef3b862cf11 (patch) | |
tree | 172486debb60fc07e4a72393e218c89957f3e780 /cmd-find.c | |
parent | d551ab8e5cfb00fbb7a79e7f0c3f4f2780fc6824 (diff) |
Add hooks for alerts (bell, silence, activity), from Thomas Adam.
Diffstat (limited to 'cmd-find.c')
-rw-r--r-- | cmd-find.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -879,6 +879,22 @@ cmd_find_from_session(struct cmd_find_state *fs, struct session *s) return (0); } +/* Find state from a winlink. */ +int +cmd_find_from_winlink(struct cmd_find_state *fs, struct session *s, + struct winlink *wl) +{ + cmd_find_clear_state(fs, NULL, 0); + + fs->s = s; + fs->wl = wl; + fs->w = wl->window; + fs->wp = wl->window->active; + + cmd_find_log_state(__func__, fs); + return (0); +} + /* Find state from a window. */ int cmd_find_from_window(struct cmd_find_state *fs, struct window *w) |