Skip to content

Commit

Permalink
escape links in Profile clickable terminal links
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 24, 2024
1 parent 2943833 commit fac5641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Profile/src/Profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ end
# Similar to `define_default_editors` in `Base.Filesystem` but for creating URIs not commands
function editor_link(path::String, linenum::Int)
editor = get(ENV, "JULIA_EDITOR", "")

path = escape_string(path)
if editor == "code"
return "vscode://file/$path:$linenum"
elseif editor == "subl" || editor == "sublime_text"
Expand Down

0 comments on commit fac5641

Please sign in to comment.