forked from RepoMirrors/bemenu
Check if there is selected item at all.
This commit is contained in:
parent
c25af3e377
commit
3c700a80d1
@ -114,6 +114,8 @@ int main(int argc, char **argv)
|
||||
|
||||
if (status == BM_RUN_RESULT_SELECTED) {
|
||||
bmItem *item = bmMenuGetSelectedItem(menu);
|
||||
|
||||
if (item)
|
||||
printf("%s\n", bmItemGetText(item));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user