mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 14:39:11 +02:00
lcl: TUTF8Parser.HandleNewLine: fill buffer
git-svn-id: trunk@31410 -
This commit is contained in:
parent
5b1188a3f9
commit
d93e971020
@ -72,6 +72,9 @@
|
||||
</Checks>
|
||||
</CodeGeneration>
|
||||
<Other>
|
||||
<CompilerMessages>
|
||||
<UseMsgFile Value="True"/>
|
||||
</CompilerMessages>
|
||||
<CompilerPath Value="$(CompPath)"/>
|
||||
</Other>
|
||||
</CompilerOptions>
|
||||
|
@ -3847,7 +3847,6 @@ var
|
||||
ASrcEdit: TSourceEditor;
|
||||
AnUnitInfo: TUnitInfo;
|
||||
Editable, SelEditable, SelAvail, IdentFound, StringFound: Boolean;
|
||||
CurrentUnitName: String;
|
||||
StartCode, EndCode: TCodeBuffer;
|
||||
StartPos, EndPos: TPoint;
|
||||
NewX, NewY, NewTopLine: integer;
|
||||
|
@ -5328,7 +5328,7 @@ var newread : integer;
|
||||
begin
|
||||
newread:=fStream.Read(fBuf[0],ParseBufSize);
|
||||
fBuf[newread]:=#0;
|
||||
fLineStart:=fPos-fLineStart;
|
||||
fLineStart:=fLineStart-fPos; // column = fPos - fLineStart + 1
|
||||
fPos:=0;
|
||||
fBufLen:=newread;
|
||||
fEofReached:=newread=0;
|
||||
@ -5404,10 +5404,9 @@ begin
|
||||
CheckLoadBuffer;
|
||||
if fBuf[fPos]=#10 then inc(fPos); //CR LF
|
||||
end
|
||||
else begin
|
||||
else
|
||||
inc(fPos); //LF
|
||||
CheckLoadBuffer;
|
||||
end;
|
||||
CheckLoadBuffer;
|
||||
inc(fSourceLine);
|
||||
fLineStart:=fPos;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user