Skip to content

Commit d9706ab

Browse files
committed
Omit omitted lines from 'recent lines' if stopping trigger evaluation
1 parent 6c977de commit d9706ab

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ProcessPreviousLine.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,16 @@ assemble the full text of the original line.
779779
} // end of each style
780780

781781

782-
} // end of coming across a note line
782+
} // end of coming across a note or command line
783+
else
784+
{ // must be an output line
785+
// consider that this line is no longer a "recent line"
786+
// if a trigger stopped all trigger evaluation.
787+
// Suggested by Fiendish - version 5.06
788+
if (m_iStopTriggerEvaluation == eStopEvaluatingTriggersInAllPlugins)
789+
if (!m_sRecentLines.empty ()) // if sane to do so
790+
m_sRecentLines.pop_back ();
791+
}
783792

784793
delete pLine; // delete contents of tail iten -- version 3.85
785794
m_LineList.RemoveTail (); // get rid of the line

0 commit comments

Comments
 (0)