Skip to content
This repository
Browse code

Platform agnostic.

Ref #712.
  • Loading branch information...
commit 7d7ec9e388fe81ea9e34acb657258dcc05312951 1 parent c8dc5d4
Robert Gleeson authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/pry/pager.rb
2  lib/pry/pager.rb
@@ -20,7 +20,7 @@ def self.page(text, pager = nil)
20 20 case pager
21 21 when nil
22 22 `less` rescue nil
23   - no_pager = $?.exitstatus != 0
  23 + no_pager = $?.success?
24 24 is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
25 25 (is_jruby || no_pager) ? SimplePager.new(text).page : SystemPager.new(text).page
26 26 when :simple

0 comments on commit 7d7ec9e

Please sign in to comment.
Something went wrong with that request. Please try again.