mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 18:09:32 +02:00
IDE: Optimize, syntax highlighter type is already set in TUnitInfo.SetSource -> SetInternalFilename.
git-svn-id: trunk@60633 -
This commit is contained in:
parent
dd78075e27
commit
415d26dc6a
@ -2144,10 +2144,6 @@ begin
|
||||
and NewUnitInfo.IsPartOfProject
|
||||
and (pfMainUnitHasUsesSectionForAllUnits in AProject.Flags));
|
||||
end;
|
||||
|
||||
// syntax highlighter type
|
||||
NewUnitInfo.DefaultSyntaxHighlighter := FilenameToLazSyntaxHighlighter(NewFilename);
|
||||
|
||||
NewSrcEdit := Nil;
|
||||
if nfOpenInEditor in NewFlags then begin
|
||||
// open a new sourceeditor
|
||||
|
Loading…
Reference in New Issue
Block a user