Browse files

Don't try to use the 'less' pager on Windows.

Ref #712.
  • Loading branch information...
1 parent ffd88c6 commit 6a67ea418aa09d2e1b4614ab6cf6952d721d029b Robert Gleeson committed Sep 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/pry/pager.rb
View
3 lib/pry/pager.rb
@@ -20,7 +20,8 @@ def self.page(text, pager = nil)
case pager
when nil
is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
- is_jruby ? SimplePager.new(text).page : SystemPager.new(text).page
+ is_windows = Pry::Helpers::BaseHelpers.windows?
+ (is_jruby || is_windows) ? SimplePager.new(text).page : SystemPager.new(text).page
when :simple
SimplePager.new(text).page
when :system

0 comments on commit 6a67ea4

Please sign in to comment.