Merge pull request #14779 from MikeMcQuaid/bye_atom

which_editor: remove Atom.
This commit is contained in:
Mike McQuaid 2023-02-23 10:20:10 +00:00 committed by GitHub
commit d1cba00ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,8 +365,8 @@ module Kernel
editor = Homebrew::EnvConfig.editor
return editor if editor
# Find Atom, Sublime Text, VS Code, Textmate, BBEdit, or vim
editor = %w[atom subl code mate bbedit vim].find do |candidate|
# Find VS Code, Sublime Text, Textmate, BBEdit, or vim
editor = %w[code subl mate bbedit vim].find do |candidate|
candidate if which(candidate, ORIGINAL_PATHS)
end
editor ||= "vim"