Skip to content

Commit

Permalink
Prevent Formula Duplication on Undo (#7338)
Browse files Browse the repository at this point in the history
Closes #7336
  • Loading branch information
Andreya-Autumn authored Nov 26, 2023
1 parent 9c265b7 commit 6ff077a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/surge-xt/gui/overlays/LuaEditors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ void FormulaModulatorEditor::applyCode()

void FormulaModulatorEditor::forceRefresh()
{
mainDocument->insertText(0, formulastorage->formulaString);
mainDocument->replaceAllContent(formulastorage->formulaString);
editor->repaintFrame();
}

Expand Down

0 comments on commit 6ff077a

Please sign in to comment.