summaryrefslogtreecommitdiff
path: root/rtl/inc/text.inc
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/inc/text.inc')
-rw-r--r--rtl/inc/text.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/rtl/inc/text.inc b/rtl/inc/text.inc
index a8752244a2..a1fd7553cd 100644
--- a/rtl/inc/text.inc
+++ b/rtl/inc/text.inc
@@ -755,6 +755,7 @@ End;
Function NextChar(var f:Text;var s:string):Boolean;
begin
+ NextChar:=false;
if (TextRec(f).BufPos<TextRec(f).BufEnd) then
if not (CtrlZMarksEOF) or (TextRec(f).Bufptr^[TextRec(f).BufPos]<>#26) then
begin
@@ -767,9 +768,7 @@ begin
If TextRec(f).BufPos>=TextRec(f).BufEnd Then
FileFunc(TextRec(f).InOutFunc)(TextRec(f));
NextChar:=true;
- end
- else
- NextChar:=false;
+ end;
end;