From a0387a0fd66954e024c926655c866a3ab80e460f Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 18 Mar 2020 19:46:51 +0100 Subject: Remove path completion in the exec menu There are a couple of issues I found with this functionality: 1) To my knowledge, it is undocumented and extremely specific. 2) Since this function would only complete a full path (by wrapping it in quotes before passing it on), it is entirely useless when composing a command that has more than one argument. 3) The snprintf call has no check for truncation, possibly leading to the path not being quoted properly. --- calmwm.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 521f8d8..030dfac 100644 --- a/calmwm.h +++ b/calmwm.h @@ -472,8 +472,6 @@ void search_match_exec(struct menu_q *, struct menu_q *, char *); void search_match_group(struct menu_q *, struct menu_q *, char *); -void search_match_path(struct menu_q *, struct menu_q *, - char *); void search_match_text(struct menu_q *, struct menu_q *, char *); void search_match_wm(struct menu_q *, struct menu_q *, -- cgit v1.2.3-2-gb3c3