From 405cc337f35731614b37d7279ddfc3a5dc806694 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 7 Jun 2017 14:37:30 +0000 Subject: 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. --- window-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window-client.c') 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': -- cgit v1.2.3