mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-19 00:15:45 +03:00
parent
5ee6715843
commit
48254f92e4
2
Panel.c
2
Panel.c
@ -441,7 +441,7 @@ bool Panel_onKey(Panel* this, int key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ensure selection within bounds
|
// ensure selection within bounds
|
||||||
if (this->selected < 0) {
|
if (this->selected < 0 || size == 0) {
|
||||||
this->selected = 0;
|
this->selected = 0;
|
||||||
this->needsRedraw = true;
|
this->needsRedraw = true;
|
||||||
} else if (this->selected >= size) {
|
} else if (this->selected >= size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user