Browse files

Platform agnostic.

Ref #712.
  • Loading branch information...
1 parent c8dc5d4 commit 7d7ec9e388fe81ea9e34acb657258dcc05312951 Robert Gleeson committed Sep 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/pager.rb
View
2 lib/pry/pager.rb
@@ -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

0 comments on commit 7d7ec9e

Please sign in to comment.