diff --git a/doc/xschem_man/developer_info.html b/doc/xschem_man/developer_info.html index 18c62362..f6696ac0 100644 --- a/doc/xschem_man/developer_info.html +++ b/doc/xschem_man/developer_info.html @@ -763,7 +763,8 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns" 2: eat backslashes
Load a new file 'f'.
- 'force': do not ask to save modified file or warn if opening an already open file
+ 'force': do not ask to save modified file or warn if opening an already
+ open file or opening a new(not existing) file.
'noundoreset': do not reset the undo history
'symbol': do not load symbols (used if loading a symbol instead of a schematic)
'nofullzoom': do not do a fll zoom on new schematic.
diff --git a/src/scheduler.c b/src/scheduler.c
index 50325c5f..1a687af6 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -1845,7 +1845,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
xctx->currsch = 0;
remove_symbols();
dbg(1, "scheduler: undo_reset=%d\n", undo_reset);
- load_schematic(load_symbols, f, undo_reset, 0);
+ load_schematic(load_symbols, f, undo_reset, !force);
tclvareval("update_recent_file {", f, "}", NULL);
my_strdup(_ALLOC_ID_, &xctx->sch_path[xctx->currsch], ".");
xctx->sch_path_hash[xctx->currsch] = 0;