if --lastopened or --lastclosed is specified any file specified on cmdline is considered an additional file to load

This commit is contained in:
stefan schippers 2025-09-29 01:21:48 +02:00
parent bdd09f2db2
commit 5b1255654e
1 changed files with 3 additions and 1 deletions

View File

@ -3256,7 +3256,9 @@ int Tcl_AppInit(Tcl_Interp *inter)
}
/* load additional files */
for(i = 2; i < cli_opt_argc; ++i) {
if(cli_opt_lastopened || cli_opt_lastclosed) i = 1;
else i = 2;
for(; i < cli_opt_argc; ++i) {
tclvareval("xschem load_new_window ", cli_opt_argv[i], NULL);
}