GUI: fix cursor going out of bounds on paste

This commit is contained in:
tildearrow 2022-04-25 11:23:44 -05:00
parent bcade6931a
commit ed6820ac46

View file

@ -554,6 +554,7 @@ void FurnaceGUI::doPaste(PasteMode mode) {
}
if (settings.cursorPastePos) {
cursor.y=j;
if (cursor.y>=e->song.patLen) cursor.y=e->song.patLen-1;
updateScroll(cursor.y);
}