summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
diff options
context:
space:
mode:
authorYoungjae Lee <ls4154.lee@gmail.com>2021-01-14 12:15:59 +0900
committerBenBE <BenBE@geshi.org>2021-01-28 09:21:18 +0100
commitfd458458296ef932a51829ce82fe70b261dbff75 (patch)
tree07049cfcdc66d9d37a35ead5a7ce79fd102637a0 /InfoScreen.c
parent92fb69f5a0a0614db4fee543388990d7c8cba191 (diff)
InfoScreen: fix mouse selection
Diffstat (limited to 'InfoScreen.c')
-rw-r--r--InfoScreen.c2
1 files changed, 1 insertions, 1 deletions
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);

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