aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-18 19:46:51 +0100
committerWolfgang Müller2021-04-27 12:28:35 +0200
commita0387a0fd66954e024c926655c866a3ab80e460f (patch)
tree0272f0158f5424cfcdbdccdabe3f31f4a29919a3 /search.c
parent8dc8d620c2f5873408b34385d9ca763574655b13 (diff)
downloadcwm-a0387a0fd66954e024c926655c866a3ab80e460f.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--search.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/search.c b/search.c
index 591a7c3..df6f74c 100644
--- a/search.c
+++ b/search.c
@@ -206,13 +206,6 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
}
void
-search_match_path(struct menu_q *menuq, struct menu_q *resultq, char *search)
-{
- TAILQ_INIT(resultq);
- match_path_type(resultq, search, PATH_ANY);
-}
-
-void
search_match_text(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
struct menu *mi;