From 36ef4d4fb65413d998c6a6fb83b0ebc86c52b1a1 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 19 Aug 2020 18:10:16 +1000 Subject: Resolve compilation warning relating to dangling else in InfoScreen_run --- InfoScreen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'InfoScreen.c') diff --git a/InfoScreen.c b/InfoScreen.c index 1823f366..8ff33d0b 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -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) { -- cgit v1.2.3