mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
dup_menu_sections: initialize enabled_item_count for skipped sections
This commit is contained in:
parent
d662bd334d
commit
b9f32cf6b5
@ -185,6 +185,7 @@ dup_menu_sections(ncmenu* ncm, const ncmenu_options* opts, int* totalwidth, int*
|
||||
ncm->sections[i].bodycols = 0;
|
||||
ncm->sections[i].itemselected = -1;
|
||||
ncm->sections[i].shortcut_offset = -1;
|
||||
ncm->sections[i].enabled_item_count = 0;
|
||||
}
|
||||
}
|
||||
if(ncm->sectioncount == 1 && rightaligned){
|
||||
|
Loading…
x
Reference in New Issue
Block a user