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:
commit
001de13e3b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue