Remove the interpreter-restart in the script/script-file option

The lua interpreter is started immediately after tio started, so this
was redundant.
This commit is contained in:
yabu76 2026-02-03 23:10:56 +09:00
parent b7ccd28300
commit 2996e411fe

View file

@ -728,15 +728,13 @@ void script_run_as_specified_by_options(void)
if (option.script_filename != NULL)
{
tio_printf("Running script %s", option.script_filename);
if (script_interp_new())
script_file_run(script_interp, option.script_filename);
script_file_run(script_interp, option.script_filename);
}
else if (option.script != NULL)
{
tio_printf("Running script");
if (script_interp_new())
script_buffer_run(script_interp, option.script);
tio_printf("Running script !%s", option.script);
script_buffer_run(script_interp, option.script);
}
}