1
0
mirror of https://github.com/xzeldon/htop.git synced 2025-02-28 22:03:24 +03:00
This commit is contained in:
Hisham Muhammad 2016-02-18 23:46:36 -02:00
commit 34431dc7fd

@ -441,7 +441,7 @@ bool Panel_onKey(Panel* this, int key) {
}
// ensure selection within bounds
if (this->selected < 0) {
if (this->selected < 0 || size == 0) {
this->selected = 0;
this->needsRedraw = true;
} else if (this->selected >= size) {