mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-02 02:24:54 +12:00
Fixed: Crash when opening menu at too small size
This commit is contained in:
parent
78c417bc9f
commit
37de9464e1
|
@ -1341,11 +1341,11 @@ namespace Menu {
|
|||
menuMask.reset();
|
||||
menuMask.set(SizeError);
|
||||
}
|
||||
else {
|
||||
for (const auto& i : iota(0, (int)menuMask.size())) {
|
||||
if (menuMask.test(i)) currentMenu = i;
|
||||
}
|
||||
|
||||
for (const auto& i : iota(0, (int)menuMask.size())) {
|
||||
if (menuMask.test(i)) currentMenu = i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
auto retCode = menuFunc.at(currentMenu)(key);
|
||||
|
|
Loading…
Reference in a new issue