Support ENV['VISUAL']

This commit is contained in:
Tim Pope 2011-08-22 13:45:24 -04:00
parent 6fa14da99c
commit b989755735
1 changed files with 2 additions and 2 deletions

View File

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