Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
abort parsing early when not finding declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Mar 14, 2020
1 parent bc2bba9 commit 31c95c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/workspaced/com/dcdext.d
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ class DCDExtComponent : ComponentWrapper
string file = data.file;
int newPosition = data.position;

if (!file.length)
if (!file.length || !newPosition)
return InterfaceDetails.init;

auto newCode = code;
Expand Down

0 comments on commit 31c95c8

Please sign in to comment.