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:
parent
7d7ec9e388
commit
6d147a637d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Pry::Pager
|
||||||
case pager
|
case pager
|
||||||
when nil
|
when nil
|
||||||
`less` rescue nil
|
`less` rescue nil
|
||||||
no_pager = $?.success?
|
no_pager = !$?.success?
|
||||||
is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
|
is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
|
||||||
(is_jruby || no_pager) ? SimplePager.new(text).page : SystemPager.new(text).page
|
(is_jruby || no_pager) ? SimplePager.new(text).page : SystemPager.new(text).page
|
||||||
when :simple
|
when :simple
|
||||||
|
|
Loading…
Add table
Reference in a new issue