forked from RepoMirrors/bemenu
fix accidentally inserted tabs
This commit is contained in:
parent
24015ef32e
commit
c6bb62389c
@ -541,14 +541,14 @@ enum bm_run_result
|
||||
run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(const struct client *client, struct bm_item *item))
|
||||
{
|
||||
if (client->ifne) {
|
||||
uint32_t total_item_count;
|
||||
struct bm_item **items = bm_menu_get_items(menu, &total_item_count);
|
||||
if (total_item_count == 0)
|
||||
return BM_RUN_RESULT_CANCEL;
|
||||
if (total_item_count == 1) {
|
||||
item_cb(client, *items);
|
||||
return BM_RUN_RESULT_SELECTED;
|
||||
}
|
||||
uint32_t total_item_count;
|
||||
struct bm_item **items = bm_menu_get_items(menu, &total_item_count);
|
||||
if (total_item_count == 0)
|
||||
return BM_RUN_RESULT_CANCEL;
|
||||
if (total_item_count == 1) {
|
||||
item_cb(client, *items);
|
||||
return BM_RUN_RESULT_SELECTED;
|
||||
}
|
||||
}
|
||||
|
||||
bm_menu_set_highlighted_index(menu, client->selected);
|
||||
|
Loading…
Reference in New Issue
Block a user