xschem select instance given from CLI will select instances regardless of their lock attribute

This commit is contained in:
stefan schippers 2023-09-24 04:01:56 +02:00
parent db1049d469
commit 41d9759953
1 changed files with 1 additions and 1 deletions

View File

@ -3565,7 +3565,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
/* find by instance name or number*/
n = get_instance(argv[3]);
if(n >= 0) {
select_element(n, sel, fast, 0);
select_element(n, sel, fast, 1);
xctx->ui_state |= SELECTION;
}
Tcl_SetResult(interp, (n >= 0) ? "1" : "0" , TCL_STATIC);