Skip to content

Commit e4c28ef

Browse files
Corrected an issue introduced in version 8.3.471 when trying to fix
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.
1 parent f0c3ec3 commit e4c28ef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.3.481
1+
8.3.482

commands/CmdRS.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ CmdSelect(w, cmd)
855855
bool layerspec;
856856
bool degenerate;
857857
bool doat = FALSE;
858-
bool more = FALSE, less = FALSE, samePlace = TRUE;
858+
bool more = FALSE, less = FALSE, samePlace = TRUE, dotop = FALSE;
859859
unsigned char labelpolicy = SEL_DO_LABELS;
860860
#ifdef MAGIC_WRAPPER
861861
char *tclstr;
@@ -942,6 +942,7 @@ CmdSelect(w, cmd)
942942
"cell", strlen(cmd->tx_argv[2])))
943943
{
944944
isqual = 1;
945+
dotop = TRUE;
945946
optionArgs = &cmd->tx_argv[2];
946947
}
947948
}
@@ -1614,9 +1615,10 @@ CmdSelect(w, cmd)
16141615
use = DBSelectCell(scx.scx_use, lastUse, &lastIndices,
16151616
&scx.scx_area, crec->dbw_bitmask, &trans, &p, &tpath);
16161617

1617-
/* Use the window's root cell if nothing else is found. */
1618+
/* Use the window's root cell if nothing else is found, */
1619+
/* or if the command was "select top cell". */
16181620

1619-
if (use == NULL)
1621+
if ((dotop == TRUE) || (use == NULL))
16201622
{
16211623
use = lastUse = scx.scx_use;
16221624
p.p_x = scx.scx_use->cu_xlo;

0 commit comments

Comments
 (0)