From fd458458296ef932a51829ce82fe70b261dbff75 Mon Sep 17 00:00:00 2001 From: Youngjae Lee Date: Thu, 14 Jan 2021 12:15:59 +0900 Subject: [PATCH] InfoScreen: fix mouse selection --- InfoScreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InfoScreen.c b/InfoScreen.c index 9647b9fe..3ebb063b 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -110,7 +110,7 @@ void InfoScreen_run(InfoScreen* this) { int ok = getmouse(&mevent); if (ok == OK) { if (mevent.y >= panel->y && mevent.y < LINES - 1) { - Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV); + Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV - 1); ch = 0; } else if (mevent.y == LINES - 1) { ch = IncSet_synthesizeEvent(this->inc, mevent.x);