mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
b7ccd28300
commit
2996e411fe
1 changed files with 3 additions and 5 deletions
|
|
@ -728,14 +728,12 @@ 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);
|
||||
|
||||
}
|
||||
else if (option.script != NULL)
|
||||
{
|
||||
tio_printf("Running script");
|
||||
if (script_interp_new())
|
||||
tio_printf("Running script !%s", option.script);
|
||||
script_buffer_run(script_interp, option.script);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue