From db6427edf8f2601bd5f1128233203e3867420efb Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 30 Apr 2024 16:20:22 +0200 Subject: [PATCH] Reload sourceinfo when changing the current circuit. --- src/frontend/runcoms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/runcoms.c b/src/frontend/runcoms.c index 613be5d9e..10077f0b8 100644 --- a/src/frontend/runcoms.c +++ b/src/frontend/runcoms.c @@ -37,6 +37,7 @@ extern struct INPmodel *modtab; extern NGHASHPTR modtabhash; extern struct dbcomm *dbs; extern void NIresetwarnmsg(void); +extern wordlist* sourceinfo; /* Routines for the commands op, tran, ac, dc, listing, device, state, * resume, stop, trace, run, end. Op, tran, ac, and dc cause the action @@ -109,6 +110,8 @@ com_scirc(wordlist *wl) ft_curckt = p; /* get the model table for the current circuit, store it in the global variable modtab */ modtab = ft_curckt->ci_modtab; + /* get the current input file names */ + sourceinfo = ft_curckt->ci_sourceinfo; modtabhash = ft_curckt->ci_modtabhash; /* get the database for save, iplot, stop */ dbs = ft_curckt->ci_dbs;