mirror of
https://github.com/mintycube/dmenu.git
synced 2024-10-22 14:05:48 +02:00
Proposed fix to make dynamic options and non-blocking stdin patch to work together
This commit is contained in:
parent
82c9f772f7
commit
088a083524
4
dmenu.c
4
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++)
|
||||
|
Loading…
Reference in New Issue
Block a user