mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 11:32:30 +02:00
SynEdit, Beautifier: fixed indent issue with ecInsertLine (added indent to wrong line)
git-svn-id: trunk@20692 -
This commit is contained in:
parent
782c9cf39c
commit
f12004fd9b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user