summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-08-19 18:10:16 +1000
committerNathan Scott <nathans@redhat.com>2020-08-19 18:10:16 +1000
commit36ef4d4fb65413d998c6a6fb83b0ebc86c52b1a1 (patch)
tree6636f39fb0e94044f357981fdc0f41f57f9fe23b /InfoScreen.c
parent80ce69c44fbe94f8f4bd1bf81809d4d2ee3cc5cd (diff)
Resolve compilation warning relating to dangling else in InfoScreen_run
Diffstat (limited to 'InfoScreen.c')
-rw-r--r--InfoScreen.c3
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy