From 7c43e02591de9b6e14744e3eaffed25ad092756e Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 25 Mar 2022 16:24:24 +0100 Subject: Improve String_contains_i to allow for multiple terms This enables: * Multiple filters in the main panel and strace etc. views * Multiple search terms The search terms are separated by "|" and are still fixed strings matched case-insensitive. Added a multi flag at request of BenBE. --- ProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ProcessList.c') diff --git a/ProcessList.c b/ProcessList.c index f3e184e8..2e5ad7cd 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -394,7 +394,7 @@ void ProcessList_rebuildPanel(ProcessList* this) { if ( (!p->show) || (this->userId != (uid_t) -1 && (p->st_uid != this->userId)) - || (incFilter && !(String_contains_i(Process_getCommand(p), incFilter))) + || (incFilter && !(String_contains_i(Process_getCommand(p), incFilter, true))) || (this->pidMatchList && !Hashtable_get(this->pidMatchList, p->tgid)) ) continue; -- cgit v1.2.3