From 088a083524cabf577e01138862a181ebebdccaeb Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 17 Sep 2020 11:14:04 +0200 Subject: [PATCH] Proposed fix to make dynamic options and non-blocking stdin patch to work together --- dmenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmenu.c b/dmenu.c index fe0540a..729e0ae 100644 --- a/dmenu.c +++ b/dmenu.c @@ -582,7 +582,9 @@ match(void) #if HIGHPRIORITY_PATCH lhpprefix = hpprefixend = NULL; #endif // HIGHPRIORITY_PATCH - #if NON_BLOCKING_STDIN_PATCH + #if NON_BLOCKING_STDIN_PATCH && DYNAMIC_OPTIONS_PATCH + for (item = items; item && (!(dynamic && *dynamic) || item->text); item = (dynamic && *dynamic) ? item + 1 : item->next) + #elif NON_BLOCKING_STDIN_PATCH for (item = items; item; item = item->next) #else for (item = items; item && item->text; item++)