Clean up more evals that have local variables are not working correctly.

This commit is contained in:
Jeff Hutchinson 2021-09-12 15:05:19 -04:00
parent a30f64506f
commit 7556e403e7
6 changed files with 27 additions and 29 deletions

View file

@ -205,7 +205,7 @@ function _TextPadOnOk()
if(ScriptEditorDlg.callback !$= "")
{
%text = ScriptEditorDlg-->textpad.getText();
%command = ScriptEditorDlg.callback @ "( %text );";
%command = ScriptEditorDlg.callback @ "(\"" @ expandEscape(%text) @ "\");";
eval(%command);
}
ScriptEditorDlg.callback = "";