Debugger: Fix wrong index for linefeed detection, issue #0037167 / fix for r63132 #69cd1abf4a

git-svn-id: trunk@63279 -
This commit is contained in:
martin 2020-06-02 14:23:35 +00:00
parent 73408cac48
commit a6dade4123

View File

@ -757,7 +757,7 @@ begin
(* "interesting" behavior once the amount of text causes it to start scrolling *)
(* so having an intermediate that can be inspected might be useful. *)
TextEndsInEOL := (AText <> '') and (AText[Length(AText)-1] in [#10]);
TextEndsInEOL := (AText <> '') and (AText[Length(AText)] in [#10]);
buffer := TStringList.Create;
try
buffer.Text := AText; (* Decides what line breaks it wants to swallow *)