Skip to content

Commit

Permalink
fix defline when method start is unknown (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Feb 22, 2022
1 parent 1102fb8 commit 01d7bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/locationinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function locinfo(frame::Frame)
if unknown_start
isfile(current_file) || return nothing
body = read(current_file, String)
defline = 0 # We are not sure where the context start in cases like these, could be improved?
defline = 1 # We are not sure where the context start in cases like these, could be improved?
end
return defline, deffile, current_line, body
else
Expand Down

0 comments on commit 01d7bdc

Please sign in to comment.