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++)