From f52d919240f0915112469926ae187d7fa4577542 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 11 Mar 2022 23:50:59 -0500 Subject: [PATCH] GUI: implement paste overflow --- src/gui/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 6fd31c409..d8e61f3b7 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3032,6 +3032,10 @@ void FurnaceGUI::doPaste(PasteMode mode) { break; } j++; + if (mode==GUI_PASTE_MODE_OVERFLOW && j>=e->song.patLen && ordsong.ordersLen-1) { + j=0; + ord++; + } if (mode==GUI_PASTE_MODE_FLOOD && i==data.size()-1) { i=1;