summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authornicm <nicm>2016-01-16 00:36:53 +0000
committernicm <nicm>2016-01-16 00:36:53 +0000
commitc9815307ebe8b729504d383904ae3ef3b862cf11 (patch)
tree172486debb60fc07e4a72393e218c89957f3e780 /cmd-find.c
parentd551ab8e5cfb00fbb7a79e7f0c3f4f2780fc6824 (diff)
Add hooks for alerts (bell, silence, activity), from Thomas Adam.
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 9b1ca517..68aaf121 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -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)