Merge pull request #5982 from reitermarkus/editor-args

Fix support for `HOMEBREW_EDITOR` with args.
This commit is contained in:
Mike McQuaid 2019-04-04 08:19:58 +01:00 committed by GitHub
commit 55b4522099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@ end
def exec_editor(*args) def exec_editor(*args)
puts "Editing #{args.join "\n"}" puts "Editing #{args.join "\n"}"
with_homebrew_path { safe_system(which_editor, *args) } with_homebrew_path { safe_system(*which_editor.shellsplit, *args) }
end end
def exec_browser(*args) def exec_browser(*args)