Skip to content

Commit

Permalink
Corrected an issue introduced in version 8.3.471 when trying to fix
Browse files Browse the repository at this point in the history
some of the "select" command syntax;  the code change caused the
"select top cell" command to behave the same as "select cell".
There was no specific code for handling "top", so now there is.
  • Loading branch information
RTimothyEdwards committed May 12, 2024
1 parent f0c3ec3 commit e4c28ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.481
8.3.482
8 changes: 5 additions & 3 deletions commands/CmdRS.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ CmdSelect(w, cmd)
bool layerspec;
bool degenerate;
bool doat = FALSE;
bool more = FALSE, less = FALSE, samePlace = TRUE;
bool more = FALSE, less = FALSE, samePlace = TRUE, dotop = FALSE;
unsigned char labelpolicy = SEL_DO_LABELS;
#ifdef MAGIC_WRAPPER
char *tclstr;
Expand Down Expand Up @@ -942,6 +942,7 @@ CmdSelect(w, cmd)
"cell", strlen(cmd->tx_argv[2])))
{
isqual = 1;
dotop = TRUE;
optionArgs = &cmd->tx_argv[2];
}
}
Expand Down Expand Up @@ -1614,9 +1615,10 @@ CmdSelect(w, cmd)
use = DBSelectCell(scx.scx_use, lastUse, &lastIndices,
&scx.scx_area, crec->dbw_bitmask, &trans, &p, &tpath);

/* Use the window's root cell if nothing else is found. */
/* Use the window's root cell if nothing else is found, */
/* or if the command was "select top cell". */

if (use == NULL)
if ((dotop == TRUE) || (use == NULL))
{
use = lastUse = scx.scx_use;
p.p_x = scx.scx_use->cu_xlo;
Expand Down

0 comments on commit e4c28ef

Please sign in to comment.