Skip to content

Commit c49dc08

Browse files
committed
fix #2170
1 parent 02f3a97 commit c49dc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ which(f, args...) = whicht(f, map(a->(isa(a,Type) ? Type{a} : typeof(a)), args))
109109
edit(file::String) = edit(file, 1)
110110
function edit(file::String, line::Integer)
111111
editor = get(ENV, "JULIA_EDITOR", "emacs")
112-
issrc = file[end-2:end] == ".jl"
112+
issrc = length(file)>2 && file[end-2:end] == ".jl"
113113
if issrc
114114
if file[1]!='/' && !is_file_readable(file)
115115
file2 = "$JULIA_HOME/../lib/julia/base/$file"

0 commit comments

Comments
 (0)