From 3e1ab95fb333a1c4cca76dfb5f2dc3bef7214bc2 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 1 Dec 2016 18:44:09 +0000 Subject: Switch ssh menu to search_match_text; like group/window/cmd menus, use only a substring match. The previous matching is only intended for the exec menus. --- kbfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index 2a9cc4b..90d1307 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.138 2016/12/01 18:17:52 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.139 2016/12/01 18:44:09 okan Exp $ */ #include @@ -526,7 +526,7 @@ kbfunc_menu_ssh(void *ctx, union arg *arg, enum xev xev) (void)fclose(fp); menu: if ((mi = menu_filter(sc, &menuq, "ssh", NULL, (CWM_MENU_DUMMY), - search_match_exec, NULL)) != NULL) { + search_match_text, NULL)) != NULL) { if (mi->text[0] == '\0') goto out; l = snprintf(path, sizeof(path), "%s -T '[ssh] %s' -e ssh %s", -- cgit v1.2.3-2-gb3c3