commit a9be24d8d287c1142cf2b40b2486528c899f72bc
Author: Raniconduh <clagv.randomgames@gmail.com>
Date: Tue Jul 12 22:35:49 2022 +0000
diff --git a/src/io.c b/src/io.c
index 1151361..9dab118 100644
--- a/src/io.c
+++ b/src/io.c
@@ -517 +517 @@ void curses_init(void) {
noecho();
raw();
- mousemask(BUTTON1_PRESSED | REPORT_MOUSE_POSITION, NULL);
+ mousemask(BUTTON1_PRESSED, NULL);
start_color();
set_color();
diff --git a/src/main.c b/src/main.c
index fbf715d..70bafd7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1468 +1467 @@ int main(int argc, char ** argv) {
MEVENT mouse_event;
if (getmouse(&mouse_event) == OK) {
int mrow = mouse_event.y; // row @ mouse click; start @ 1
- if (mrow <= 3) break; // 3-top
- if (mrow > LINES-3) break; // 3-bottom
+ if (mrow <= 3 || mrow > LINES - 3) break; // 3 pad top/bottom
if ((unsigned)mrow - 3 > n_dir_entries) break;
cursor = first_f + mrow - 3; // 3-pad