summaryrefslogtreecommitdiffstats
path: root/window-client.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-07 14:37:30 +0000
committernicm <nicm>2017-06-07 14:37:30 +0000
commit405cc337f35731614b37d7279ddfc3a5dc806694 (patch)
tree3f0962f6034f59e6cb6d09c4b8daaab180c517b9 /window-client.c
parent50b27c8c0dc65cb418ed422e2cdd035a7bafedfe (diff)
Add simple searching (C-s and n) to the various choose modes: by name
for client and tree, and by name and content for buffer.
Diffstat (limited to 'window-client.c')
-rw-r--r--window-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/window-client.c b/window-client.c
index f34d007d..bb33b0f4 100644
--- a/window-client.c
+++ b/window-client.c
@@ -224,7 +224,7 @@ window_client_init(struct window_pane *wp, __unused struct cmd_find_state *fs,
data->command = xstrdup(args->argv[0]);
data->data = mode_tree_start(wp, window_client_build,
- window_client_draw, data, window_client_sort_list,
+ window_client_draw, NULL, data, window_client_sort_list,
nitems(window_client_sort_list), &s);
mode_tree_build(data->data);
@@ -301,7 +301,7 @@ window_client_key(struct window_pane *wp, struct client *c,
* Enter = detach client
*/
- finished = mode_tree_key(data->data, &key, m);
+ finished = mode_tree_key(data->data, c, &key, m);
switch (key) {
case 'd':
case 'x':