diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-19 18:10:16 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-19 18:10:16 +1000 |
commit | 36ef4d4fb65413d998c6a6fb83b0ebc86c52b1a1 (patch) | |
tree | 6636f39fb0e94044f357981fdc0f41f57f9fe23b | |
parent | 80ce69c44fbe94f8f4bd1bf81809d4d2ee3cc5cd (diff) |
Resolve compilation warning relating to dangling else in InfoScreen_run
-rw-r--r-- | InfoScreen.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |