Clear last triggers in all necessary spots.

This commit is contained in:
Dianne Skoll
2019-12-28 16:42:10 -05:00
parent 3180c781ed
commit 9a6fc0253b
2 changed files with 6 additions and 2 deletions

View File

@@ -785,6 +785,7 @@ static void GenerateCalEntries(int col)
DestroyOmitContexts();
DestroyVars(0);
NumTriggered = 0;
ClearLastTriggers();
r=IncludeFile(InitialFile);
if (r) {

View File

@@ -63,14 +63,16 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, "");
#endif
/* The very first thing to do is to set up ErrFp to be stderr */
/* The very first thing to do is to set up ErrFp to be stderr */
ErrFp = stderr;
/* Set up global vars */
/* Set up global vars */
ArgC = argc;
ArgV = (char const **) argv;
InitRemind(argc, (char const **) argv);
ClearLastTriggers();
if (DoCalendar || (DoSimpleCalendar && (!NextMode || PsCal))) {
ProduceCalendar();
return 0;
@@ -129,6 +131,7 @@ int main(int argc, char *argv[])
DestroyOmitContexts();
DestroyVars(0);
NumTriggered = 0;
ClearLastTriggers();
JulianToday++;
}
}