Skip to content

Commit

Permalink
fix prev patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jul 4, 2019
1 parent db1ab7c commit 3a20fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion econtrol/ec_lexerlist.pas
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ function TecLexerList.FindLexerByFilename(AFilename: string;
end;

if Names.Count=0 then exit;
Names.Sort;

if (Names.Count=1) or not Assigned(AChooseFunc) then
exit(TecSyntAnalyzer(Names.Objects[0]));

Names.Sort;
i:= AChooseFunc(AFilename, Names);
if i>=0 then
exit(TecSyntAnalyzer(Names.Objects[i]));
Expand Down

0 comments on commit 3a20fbb

Please sign in to comment.