Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Platform agnostic.

Ref #712.
  • Loading branch information...
commit 7d7ec9e388fe81ea9e34acb657258dcc05312951 1 parent c8dc5d4
Robert Gleeson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pry/pager.rb
2  lib/pry/pager.rb
View
@@ -20,7 +20,7 @@ def self.page(text, pager = nil)
case pager
when nil
`less` rescue nil
- no_pager = $?.exitstatus != 0
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.