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:
Nicholas Marriott 2012-11-27 14:42:56 +00:00
parent 6ef4f8e16c
commit 1fcc7f50ac

View File

@ -832,10 +832,10 @@ window_copy_mouse(
if (m->event == MOUSE_EVENT_WHEEL) {
if (m->wheel == MOUSE_WHEEL_UP) {
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) {
for (i = 0; i < 5; i++)
window_copy_cursor_down(wp, 0);
window_copy_cursor_down(wp, 1);
if (data->oy == 0)
goto reset_mode;
}