Skip to content

Commit 5ec7462

Browse files
committed
Improve performance
1 parent bcbd8ed commit 5ec7462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeTracking.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function definition(::Type{String}, method::Method)
251251
push!(linestarts, istart)
252252
istart = findnext(eol, src, istart) + 1
253253
end
254-
push!(linestarts, length(src) + 1)
254+
push!(linestarts, istart)
255255
# Parse the function definition (hoping that we've found the right location to start)
256256
ex, iend = Meta.parse(src, istart; raise=false)
257257
# The function declaration may have been on a previous line,

0 commit comments

Comments
 (0)