mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 04:18:19 +02:00
SynEdit: Auto-Indent (if spaces after caret) could indent to much
git-svn-id: trunk@18202 -
This commit is contained in:
parent
d3d5342fe6
commit
df21d7be95
@ -7024,7 +7024,7 @@ begin
|
||||
if Len >= LogCaretXY.X then begin
|
||||
if LogCaretXY.X > 1 then begin
|
||||
// break line in two
|
||||
SpaceCount1 := LeftSpaces(Temp);
|
||||
SpaceCount1 := LeftSpaces(copy(Temp, 1, LogCaretXY.X-1));
|
||||
Temp := Copy(LineText, 1, LogCaretXY.X - 1);
|
||||
FTheLinesView.Insert(CaretY - 1, Temp);
|
||||
Delete(Temp2, 1, LogCaretXY.X - 1);
|
||||
@ -10111,7 +10111,7 @@ begin
|
||||
Result:=0;
|
||||
if InsertPos.Y<1 then exit;
|
||||
LastTextY:=InsertPos.Y;
|
||||
Lines:=Editor.Lines;
|
||||
Lines:=Editor.RealLines;
|
||||
if LastTextY>Lines.Count then
|
||||
LastTextY:=Lines.Count;
|
||||
while (LastTextY>0) do begin
|
||||
|
Loading…
Reference in New Issue
Block a user