1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Merge pull request #211 from tpope/master

Support `ENV['VISUAL']` as editor
This commit is contained in:
John Mair 2011-08-22 10:57:11 -07:00
commit 001de13e3b

View file

@ -200,9 +200,9 @@ class Pry
def self.default_editor_for_platform
if RUBY_PLATFORM =~ /mswin|mingw/
ENV['EDITOR'] || "notepad"
ENV['VISUAL'] || ENV['EDITOR'] || "notepad"
else
ENV['EDITOR'] || "nano"
ENV['VISUAL'] || ENV['EDITOR'] || "nano"
end
end