IDE: indent on paste: check highlighter

git-svn-id: trunk@26396 -
This commit is contained in:
mattias 2010-07-01 22:37:30 +00:00
parent 105b15f19d
commit 399876ec14

View File

@ -4224,6 +4224,8 @@ begin
if AMode<>smNormal then exit;
if SyncroLockCount > 0 then exit;
if not CodeToolsOpts.IndentOnPaste then exit;
if not (SyntaxHighlighterType in [lshFreePascal, lshDelphi]) then
exit;
{$IFDEF VerboseIndenter}
debugln(['TSourceEditor.EditorPaste LogCaret=',dbgs(ALogStartPos)]);
{$ENDIF}