summaryrefslogtreecommitdiffstats
path: root/src/tui.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-26 20:54:31 -0300
committerAndrés <andmarti@gmail.com>2021-03-26 20:54:31 -0300
commit4465a314cc96f3a176d380ca323b618230a1d23f (patch)
treec71ca1c00aeb31c6a07331e6ff4f833534141689 /src/tui.c
parent7d0707adfccdd4268cd2de38d90dd69412f31148 (diff)
fix in mouse click
Diffstat (limited to 'src/tui.c')
-rw-r--r--src/tui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tui.c b/src/tui.c
index 84d9fc3..c41f16f 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -1591,8 +1591,9 @@ void ui_handle_mouse(MEVENT event) {
col += fwidth[i];
if (col >= c + 1) break;
}
+ if (i > mxcol) i = mxcol;
currow = offscr_sc_rows + r;
- curcol = i;
+ curcol = offscr_sc_cols + i;
unselect_ranges();
ui_update(TRUE);
}