mirror of https://github.com/aristocratos/btop.git
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.reset();
|
||||||
menuMask.set(SizeError);
|
menuMask.set(SizeError);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
for (const auto& i : iota(0, (int)menuMask.size())) {
|
for (const auto& i : iota(0, (int)menuMask.size())) {
|
||||||
if (menuMask.test(i)) currentMenu = i;
|
if (menuMask.test(i)) currentMenu = i;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto retCode = menuFunc.at(currentMenu)(key);
|
auto retCode = menuFunc.at(currentMenu)(key);
|
||||||
|
|
Loading…
Reference in New Issue