From 399876ec14b67e3696eadfdef5523aaa9c39d0af Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 1 Jul 2010 22:37:30 +0000 Subject: [PATCH] IDE: indent on paste: check highlighter git-svn-id: trunk@26396 - --- ide/sourceeditor.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index d3bcc512fe..a02731ff64 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -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}