Make early exit contingent upon ParseUntriggered.

This commit is contained in:
Dianne Skoll
2025-11-10 12:02:47 -05:00
parent 30e4a9fc50
commit 96d40b81df
2 changed files with 5 additions and 2 deletions

View File

@@ -2078,7 +2078,7 @@ static int DoCalRem(ParsePtr p, int col)
FreeTrig(&trig);
return OK;
}
if (dse < 0) {
if (dse < 0 && !ParseUntriggered) {
/* Expired */
FreeTrig(&trig);
return OK;
@@ -2095,7 +2095,7 @@ static int DoCalRem(ParsePtr p, int col)
FreeTrig(&trig);
return r;
}
if (dse < 0) {
if (dse < 0 && !ParseUntriggered) {
/* Expired */
FreeTrig(&trig);
return OK;

View File

@@ -501,6 +501,9 @@ int DoOmit(ParsePtr p)
int
AddGlobalOmit(int dse)
{
if (dse < 0) {
return OK;
}
if (NumFullOmits == MAX_FULL_OMITS) return E_2MANY_FULL;
if (!BexistsIntArray(FullOmitArray, NumFullOmits, dse)) {
InsertIntoSortedArray(FullOmitArray, NumFullOmits, dse);