提交 780ef9d7 编写于 作者: R Ravi Chande

Fix

上级 c549ec81
......@@ -296,6 +296,16 @@ protected int CompareMatches(PatternMatch match1, PatternMatch match2, Completio
return -1;
}
// preselected items are prefered
if (item1.Rules.MatchPriority > item2.Rules.MatchPriority)
{
return -1;
}
else if (item2.Rules.MatchPriority > item1.Rules.MatchPriority)
{
return 1;
}
diff = PatternMatch.CompareCase(match1, match2);
if (diff != 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册