mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
inp.c, disable command edit' unless interactive' has been set
This commit is contained in:
@@ -1050,6 +1050,13 @@ com_edit(wordlist *wl)
|
|||||||
bool inter, permfile;
|
bool inter, permfile;
|
||||||
char buf[BSIZE_SP];
|
char buf[BSIZE_SP];
|
||||||
|
|
||||||
|
if (!cp_getvar("interactive", CP_BOOL, NULL)) {
|
||||||
|
fprintf(cp_err,
|
||||||
|
"Warning: `edit' is disabled because 'interactive' has not been set.\n"
|
||||||
|
" perhaps you want to 'set interactive'\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
inter = cp_interactive;
|
inter = cp_interactive;
|
||||||
cp_interactive = FALSE;
|
cp_interactive = FALSE;
|
||||||
if (wl) {
|
if (wl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user