Skip to content

Commit ecfc767

Browse files
committed
Restrict clone location to single line
1 parent 9134eba commit ecfc767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/typepal/Collector.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ Collector newCollector(str modelName, map[str,Tree] namedTrees, TypePalConfig co
10161016
str txt = readFile(l);
10171017
int k = findFirst(txt, "\n");
10181018
if(k >= 0){
1019-
return l[length=k][end=<l.begin.line+1,0>];
1019+
return l[length=k][end=<l.begin.line,k>];
10201020
}
10211021
} catch _:;
10221022
return l;

0 commit comments

Comments
 (0)