mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-28 06:43:44 +02:00
codetools: CleanPosToCaret now returns false if Buffer.IsDeleted
git-svn-id: trunk@19180 -
This commit is contained in:
parent
7fb37b5564
commit
804c85d283
@ -2198,6 +2198,7 @@ begin
|
||||
Result:=Scanner.CleanedPosToCursor(CleanPos,p,Code);
|
||||
if Result then begin
|
||||
Caret.Code:=TCodeBuffer(Code);
|
||||
if Caret.Code.IsDeleted then exit(false);
|
||||
TCodeBuffer(Code).AbsoluteToLineCol(p,Caret.Y,Caret.X);
|
||||
Result:=(Caret.Y>=0);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user