diff --git a/select/selCreate.c b/select/selCreate.c index d6a8d308..23c2ebdc 100644 --- a/select/selCreate.c +++ b/select/selCreate.c @@ -473,10 +473,15 @@ SelectArea(scx, types, xMask, globmatch) } else (void) DBCellCopyAllLabels(scx, types, xMask, SelectUse, &labelArea); - /* Select unexpanded cell uses. */ + /* Select cell uses. */ + /* NOTE: Changed 2/9/2025; Previously this was restricted to unexpanded + * cell instances, which is an unnecessary restriction. By changing "xMask" + * to "CU_DESCEND_ALL", this now only ever looks one level down and will + * select any instance that is a child of the edit cell, expanded or not. + */ if (TTMaskHasType(types, L_CELL)) - (void) DBCellCopyAllCells(scx, xMask, SelectUse, &cellArea); + (void) DBCellCopyAllCells(scx, CU_DESCEND_ALL, SelectUse, &cellArea); else { cellArea.r_xbot = 0;