Skip to content

Commit

Permalink
Recognize atom with a file extension.
Browse files Browse the repository at this point in the history
The `edit` function on windows fails if the editor command is `atom`. It succeeds if it is instead `atom.cmd`, but then Julia fails to recognize the `atom` editor. This fixes that.
  • Loading branch information
twadleigh authored Aug 5, 2016
1 parent 2d30203 commit e79bee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function edit(path::AbstractString, line::Integer=0)
background = false
elseif name == "textmate" || name == "mate" || name == "kate"
cmd = line != 0 ? `$command $path -l $line` : `$command $path`
elseif startswith(name, "subl") || name == "atom"
elseif startswith(name, "subl") || startswith(name, "atom")
cmd = line != 0 ? `$command $path:$line` : `$command $path`
elseif is_windows() && (name == "start" || name == "open")
cmd = `cmd /c start /b $path`
Expand Down

0 comments on commit e79bee7

Please sign in to comment.