SynEdit, Beautifier: fixed indent issue with ecInsertLine (added indent to wrong line)

git-svn-id: trunk@20692 -
This commit is contained in:
martin 2009-06-21 14:11:00 +00:00
parent 782c9cf39c
commit f12004fd9b

View File

@ -250,9 +250,9 @@ begin
Indent := GetIntend(y, b);
s := GetCharMix(y, Indent, '', b);
if (FIndentType = sbitPositionCaret) and (ACaret.LineText = '') then
if (FIndentType = sbitPositionCaret) and (FCurrentLines[y] = '') then
s := '';
FCurrentLines.EditInsert(1, ACaret.LinePos, s);
FCurrentLines.EditInsert(1, y, s);
if (Command = ecLineBreak) then begin
ACaret.IncForcePastEOL;