mirror of https://github.com/xzeldon/htop.git
Resolve compilation warning relating to dangling else in InfoScreen_run
This commit is contained in:
parent
80ce69c44f
commit
36ef4d4fb6
|
@ -131,12 +131,13 @@ void InfoScreen_run(InfoScreen* this) {
|
|||
if (ch == KEY_MOUSE) {
|
||||
MEVENT mevent;
|
||||
int ok = getmouse(&mevent);
|
||||
if (ok == OK)
|
||||
if (ok == OK) {
|
||||
if (mevent.y >= panel->y && mevent.y < LINES - 1) {
|
||||
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV);
|
||||
ch = 0;
|
||||
} else if (mevent.y == LINES - 1)
|
||||
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
|
||||
}
|
||||
}
|
||||
|
||||
if (this->inc->active) {
|
||||
|
|
Loading…
Reference in New Issue