mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +02:00
synedit: fix hang when pressed HOME key on the first line (bug #0012983)
git-svn-id: trunk@18372 -
This commit is contained in:
parent
af0d7249f4
commit
def590b362
@ -121,11 +121,12 @@ begin
|
||||
|
||||
SpaceCount2 := 0;
|
||||
BackCounter := PhysCaret.Y - 1;
|
||||
repeat
|
||||
Dec(BackCounter);
|
||||
Temp := Editor.RealLines[BackCounter];
|
||||
SpaceCount2 := LeftSpaces(Editor, Temp, True);
|
||||
until (BackCounter = 0) or (Temp <> '');
|
||||
if BackCounter > 0 then
|
||||
repeat
|
||||
Dec(BackCounter);
|
||||
Temp := Editor.RealLines[BackCounter];
|
||||
SpaceCount2 := LeftSpaces(Editor, Temp, True);
|
||||
until (BackCounter = 0) or (Temp <> '');
|
||||
|
||||
case FIndentType of
|
||||
sbitSpace:
|
||||
|
Loading…
Reference in New Issue
Block a user