mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
When scrolling in copy mode with the mouse, scroll screen rather than
moving cursor. This change from Ailin Nemui, alternative to a change from Stephen Hicks.
This commit is contained in:
parent
6ef4f8e16c
commit
1fcc7f50ac
@ -832,10 +832,10 @@ window_copy_mouse(
|
|||||||
if (m->event == MOUSE_EVENT_WHEEL) {
|
if (m->event == MOUSE_EVENT_WHEEL) {
|
||||||
if (m->wheel == MOUSE_WHEEL_UP) {
|
if (m->wheel == MOUSE_WHEEL_UP) {
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
window_copy_cursor_up(wp, 0);
|
window_copy_cursor_up(wp, 1);
|
||||||
} else if (m->wheel == MOUSE_WHEEL_DOWN) {
|
} else if (m->wheel == MOUSE_WHEEL_DOWN) {
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
window_copy_cursor_down(wp, 0);
|
window_copy_cursor_down(wp, 1);
|
||||||
if (data->oy == 0)
|
if (data->oy == 0)
|
||||||
goto reset_mode;
|
goto reset_mode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user