aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2016-12-01 18:44:09 +0000
committerokan2016-12-01 18:44:09 +0000
commit3e1ab95fb333a1c4cca76dfb5f2dc3bef7214bc2 (patch)
tree98891aedcb3406df79e0930b4dd5ac0dd9c8d14e /kbfunc.c
parenta6fb2061c2a3151c71f40486b03a6a149af717c3 (diff)
downloadcwm-3e1ab95fb333a1c4cca76dfb5f2dc3bef7214bc2.tar.gz
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.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h>
@@ -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",