* take care of the efSyntaxHighlight flag when checking if syntax highlighting shall be on or off, resolves #4566

git-svn-id: trunk@8193 -
This commit is contained in:
florian 2007-07-29 17:28:16 +00:00
parent caec7ab689
commit d70521ebb1

View File

@ -768,7 +768,7 @@ end;
function IDEUseSyntaxHighlight(Editor: PFileEditor): boolean; {$ifndef FPC}far;{$endif}
begin
IDEUseSyntaxHighlight:=(Editor^.FileName='') or MatchesFileList(NameAndExtOf(Editor^.FileName),HighlightExts);
IDEUseSyntaxHighlight:=(Editor^.IsFlagSet(efSyntaxHighlight)) and ((Editor^.FileName='') or MatchesFileList(NameAndExtOf(Editor^.FileName),HighlightExts));
end;
function IDEUseTabsPattern(Editor: PFileEditor): boolean; {$ifndef FPC}far;{$endif}