mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 17:08:14 +01:00
Only exit copy mode at the bottom if no selection in progress, from
Benoit Pierre.
This commit is contained in:
parent
938768ed3d
commit
df680d7257
@ -853,8 +853,12 @@ window_copy_mouse(
|
||||
} else if (m->wheel == MOUSE_WHEEL_DOWN) {
|
||||
for (i = 0; i < 5; i++)
|
||||
window_copy_cursor_down(wp, 1);
|
||||
if (data->oy == 0)
|
||||
goto reset_mode;
|
||||
/*
|
||||
* We reached the bottom, leave copy mode,
|
||||
* but only if no selection is in progress.
|
||||
*/
|
||||
if (data->oy == 0 && !s->sel.flag)
|
||||
goto reset_mode;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user