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

Fix silly bug in Pry::Pager.page(…).

This commit is contained in:
Robert Gleeson 2012-09-15 22:26:05 +01:00
parent 7d7ec9e388
commit 6d147a637d

View file

@ -20,7 +20,7 @@ class Pry::Pager
case pager
when nil
`less` rescue nil
no_pager = $?.success?
no_pager = !$?.success?
is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
(is_jruby || no_pager) ? SimplePager.new(text).page : SystemPager.new(text).page
when :simple