Skip to content

Commit e79bee7

Browse files
authored
Recognize atom with a file extension.
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.
1 parent 2d30203 commit e79bee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/interactiveutil.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function edit(path::AbstractString, line::Integer=0)
4040
background = false
4141
elseif name == "textmate" || name == "mate" || name == "kate"
4242
cmd = line != 0 ? `$command $path -l $line` : `$command $path`
43-
elseif startswith(name, "subl") || name == "atom"
43+
elseif startswith(name, "subl") || startswith(name, "atom")
4444
cmd = line != 0 ? `$command $path:$line` : `$command $path`
4545
elseif is_windows() && (name == "start" || name == "open")
4646
cmd = `cmd /c start /b $path`

0 commit comments

Comments
 (0)