File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ assemble the full text of the original line.
592
592
// Do plugins (stop if one stops trigger evaluation).
593
593
// Do only negative sequence number plugins at this point
594
594
// Suggested by Fiendish. Added in version 4.97.
595
- for (pit = m_PluginList.begin ();
595
+ for (pit = m_PluginList.begin ();
596
596
pit != m_PluginList.end () &&
597
597
(*pit)->m_iSequence < 0 &&
598
598
m_iStopTriggerEvaluation != eStopEvaluatingTriggersInAllPlugins;
@@ -635,12 +635,14 @@ assemble the full text of the original line.
635
635
} // end of trigger evaluation not stopped
636
636
637
637
// do plugins (stop if one stops trigger evaluation, or if it was stopped by the main world triggers)
638
- for ( // pit should now be pointing at plugins with a sequence number >= 0
639
- ;
640
- pit != m_PluginList.end () &&
638
+ for (pit = m_PluginList.begin ();
639
+ pit != m_PluginList.end () &&
641
640
m_iStopTriggerEvaluation != eStopEvaluatingTriggersInAllPlugins;
642
641
++pit)
643
642
{
643
+ // skip past negative sequence numbers
644
+ if ((*pit)->m_iSequence > 0 )
645
+ continue ;
644
646
m_CurrentPlugin = *pit;
645
647
// allow trigger evaluation for the moment (ie. the next plugin)
646
648
m_iStopTriggerEvaluation = eKeepEvaluatingTriggers;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ CAliasList AliasList;
76
76
// Do plugins (stop if one stops trigger evaluation).
77
77
// Do only negative sequence number plugins at this point
78
78
// Suggested by Fiendish. Added in version 4.97.
79
- for (pit = m_PluginList.begin ();
79
+ for (pit = m_PluginList.begin ();
80
80
pit != m_PluginList.end () &&
81
81
(*pit)->m_iSequence < 0 ;
82
82
++pit)
@@ -105,11 +105,13 @@ CAliasList AliasList;
105
105
return true ;
106
106
107
107
// do plugins (stop if one stops alias evaluation)
108
- for ( // pit should now be pointing at plugins with a sequence number >= 0
109
- ;
110
- pit != m_PluginList.end ();
108
+ for (pit = m_PluginList.begin ();
109
+ pit != m_PluginList.end ();
111
110
++pit)
112
111
{
112
+ // skip past negative sequence numbers
113
+ if ((*pit)->m_iSequence > 0 )
114
+ continue ;
113
115
m_CurrentPlugin = *pit;
114
116
if (m_CurrentPlugin->m_bEnabled )
115
117
if (ProcessOneAliasSequence (input,
You can’t perform that action at this time.
0 commit comments