summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-15 12:09:58 -0300
committerAndrés <andmarti@gmail.com>2021-03-15 12:09:58 -0300
commitaa8105a2531d9eb7bb1e88d1a273e1c9b1c7f65b (patch)
tree8f10ea5306754c58a7c24ff8b42a69cba8a3f49d
parent7e903396209347c70de199e64c78f4733712792a (diff)
Fix row position when clicking after mouse wheel movement
-rw-r--r--src/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui.c b/src/tui.c
index c152ac8..50b675b 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -1532,7 +1532,7 @@ void ui_handle_mouse(MEVENT event) {
col += fwidth[i];
if (col > c + 1) break;
}
- currow = r;
+ currow = offscr_sc_rows + r;
curcol = i;
unselect_ranges();
ui_update(TRUE);