Catch expression-pasting errors on all REM commands.

This commit is contained in:
Dianne Skoll
2022-03-12 15:51:30 -05:00
parent eb100e57e2
commit f47cf2320e

View File

@@ -1867,6 +1867,13 @@ static int DoCalRem(ParsePtr p, int col)
e->next = CurCol;
CalColumn[col] = e;
SortCol(&CalColumn[col]);
} else {
/* Parse the rest of the line to catch expression-pasting errors */
while (ParseChar(p, &r, 0)) {
if (r != 0) {
return r;
}
}
}
return OK;
}