File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ function edit(file::AbstractString, line::Integer)
20
20
f != = nothing && (file = f)
21
21
end
22
22
const no_line_msg = " Unknown editor: no line number information passed.\n The method is defined at line $line ."
23
- if edname == " emacs" || edname == " gedit"
23
+ if startswith ( edname, " emacs" ) || edname == " gedit"
24
24
spawn (` $editor +$line $file ` )
25
25
elseif edname == " vi" || edname == " vim" || edname == " nvim" || edname == " mvim" || edname == " nano"
26
26
run (` $editor +$line $file ` )
27
27
elseif edname == " textmate" || edname == " mate" || edname == " kate"
28
28
spawn (` $editor $file -l $line ` )
29
- elseif edname == " subl" || edname == " atom"
29
+ elseif startswith ( edname, " subl" ) || edname == " atom"
30
30
spawn (` $editor $file :$line ` )
31
31
elseif OS_NAME == :Windows && (edname == " start" || edname == " open" )
32
32
spawn (` cmd /c start /b $file ` )
You can’t perform that action at this time.
0 commit comments