Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 4b8e6c9

Browse files
author
Benjamin Scholtysik (Reimold)
authored
Merge pull request #29 from doggan/postprocess-fix
Fix for post-processor removing too many lines during replace.
2 parents 8aedf13 + a4fae03 commit 4b8e6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/Editor/PostBuildTrigger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static void InsertCodeIntoClass(string filepath, string[] methodSignatur
126126
newContents.Add(valuesToAppend[foundIndex] + rn);
127127
found = false;
128128
} else if((positionsInMethod[foundIndex] == Position.End) && line.Trim().Equals("}")) {
129-
newContents = newContents.GetRange(0, newContents.Count - 3);
129+
newContents = newContents.GetRange(0, newContents.Count - 1);
130130
newContents.Add(valuesToAppend[foundIndex] + rn + "}" + rn);
131131
found = false;
132132
}

0 commit comments

Comments
 (0)