summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-15 13:37:50 -0300
committerAndrés <andmarti@gmail.com>2021-03-15 13:37:50 -0300
commitaee6dddf7e8281a7bf11495695d3f4c43d3aa4bf (patch)
tree17ae242b488df9384a31e57acd183a02ae9824f7
parent56fb238d7e79e3d91b818b8b5d3669d530646afc (diff)
more on mouse work
-rw-r--r--src/tui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tui.c b/src/tui.c
index 3aaec3b..88e0ece 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -1481,6 +1481,11 @@ void ui_mv_bottom_bar() {
return;
}
+/**
+ * \brief
+ * function thats handles mouse movements
+ * \return none
+ */
#ifdef MOUSE
void ui_handle_mouse(MEVENT event) {
int i, r = 0, c = 0;
@@ -1526,9 +1531,9 @@ void ui_handle_mouse(MEVENT event) {
i < freeze_ranges->tl->col && i >= freeze_ranges->tl->col - center_hidden_cols))) continue;
-// sc_debug("i:%d off%d mxcol:%d col:%d c:%d", i, offscr_sc_cols, mxcol, col, c);
+ //sc_debug("i:%d off%d mxcol:%d col:%d c:%d", i, offscr_sc_cols, mxcol, col, c);
col += fwidth[i];
- if (col > c + 1) break;
+ if (col >= c + 1) break;
}
currow = offscr_sc_rows + r;
curcol = i;