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
1 changed files with 2 additions and 1 deletions

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);
}
@ -1003,4 +1004,4 @@ void FurnaceGUI::doRedo() {
}
redoHist.pop_back();
}
}