Skip to content

Commit 80aec27

Browse files
committed
Fix stderr reporting when special cursor line isn't found
An easy way to reproduce this issue is to run the plugin with an old version of pasfmt from before the `--cursor` option was added. In this case it will tell you an error occurred but won't be able to tell you anything about it.
1 parent 3c3829d commit 80aec27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Pasfmt.FormatCore.pas

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function ExtractCursorTag(Data: string; out TagValue: string): string;
4040
StartPos: Integer;
4141
EndPos: Integer;
4242
begin
43+
Result := Data;
4344
TagPos := System.Pos(CTag, Data);
4445
if TagPos > 0 then begin
4546
StartPos := TagPos + Length(CTag);

0 commit comments

Comments
 (0)