Dmenu outputs input text, if no matches were found.

This commit is contained in:
Jari Vetoniemi 2014-04-12 14:38:42 +03:00
parent 9e9b671fa3
commit fc08cb9cff

View File

@ -107,6 +107,9 @@ int main(int argc, char **argv)
const char *text = bmItemGetText(items[i]); const char *text = bmItemGetText(items[i]);
printf("%s\n", (text ? text : "")); printf("%s\n", (text ? text : ""));
} }
if (!count && bmMenuGetFilter(menu))
printf("%s\n", bmMenuGetFilter(menu));
} }
bmMenuFree(menu); bmMenuFree(menu);