diff options
author | Andrés <andmarti@gmail.com> | 2021-03-15 13:37:50 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-03-15 13:37:50 -0300 |
commit | aee6dddf7e8281a7bf11495695d3f4c43d3aa4bf (patch) | |
tree | 17ae242b488df9384a31e57acd183a02ae9824f7 | |
parent | 56fb238d7e79e3d91b818b8b5d3669d530646afc (diff) |
more on mouse work
-rw-r--r-- | src/tui.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; |