diff options
author | Andrés <andmarti@gmail.com> | 2021-03-26 20:54:31 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-03-26 20:54:31 -0300 |
commit | 4465a314cc96f3a176d380ca323b618230a1d23f (patch) | |
tree | c71ca1c00aeb31c6a07331e6ff4f833534141689 /src/tui.c | |
parent | 7d0707adfccdd4268cd2de38d90dd69412f31148 (diff) |
fix in mouse click
Diffstat (limited to 'src/tui.c')
-rw-r--r-- | src/tui.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |