mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-30 03:32:53 +03:00
Ticket #1792 (incorrect mouse movement)
Fixed incorrect mouse movement when text scrolled to the right. Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
parent
abcc78696b
commit
64bc6aa1c7
@ -120,12 +120,13 @@ edit_event (Gpm_Event *event, void *data)
|
||||
if (option_cursor_beyond_eol) {
|
||||
long line_len = edit_move_forward3 (edit, edit_bol (edit, edit->curs1), 0,
|
||||
edit_eol(edit, edit->curs1));
|
||||
|
||||
if ( event->x > line_len ) {
|
||||
edit->over_col = event->x - line_len - option_line_state_width - 1;
|
||||
edit->over_col = event->x - line_len - edit->start_col - option_line_state_width - 1;
|
||||
edit->prev_col = line_len;
|
||||
} else {
|
||||
edit->over_col = 0;
|
||||
edit->prev_col = event->x - option_line_state_width - 1;
|
||||
edit->prev_col = event->x - option_line_state_width - edit->start_col - 1;
|
||||
}
|
||||
} else {
|
||||
edit->prev_col = event->x - edit->start_col - option_line_state_width - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user