From 8c75e5f6329f5ec838c97122c33fa4b9e22aae1c Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 3 Nov 2009 12:49:55 +0000 Subject: [PATCH] IDE: auto indent: fixed ecPaste line to codetools line mapping git-svn-id: trunk@22401 - --- ide/sourceeditor.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 7737bb15fc..b01a7410dc 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -6823,7 +6823,7 @@ begin ecLineBreak,ecInsertLine: CodeBuf.LineColToPosition(LogCaret.Y,LogCaret.X,p); ecPaste: - CodeBuf.LineColToPosition(FirstLinePos-1,1,p); + CodeBuf.LineColToPosition(FirstLinePos,1,p); end; if p<1 then exit; if FirstLinePos>0 then