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

Commit a4fae03

Browse files
author
Shyam Guthikonda
committed
Fix for post-process trigger removing too many lines during replace operation.
#28
1 parent 8aedf13 commit a4fae03

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)