Only exit copy mode at the bottom if no selection in progress, from

Benoit Pierre.
This commit is contained in:
nicm 2014-01-22 13:57:49 +00:00
parent 938768ed3d
commit df680d7257

View File

@ -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;
}