Skip to content
Browse files

Remove debugging lines.

  • Loading branch information...
1 parent f84e65b commit 557a9177727cf9e8d53cd785b8b3678b0551f3df Robert Gleeson committed Aug 8, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/pry/helpers/base_helpers.rb
View
16 lib/pry/helpers/base_helpers.rb
@@ -134,17 +134,17 @@ def stagger_output(text, out = nil)
$stdout
end
- #if text.lines.count < Pry::Pager.page_size || !Pry.pager
- # out.puts text
- # return
- #end
+ if text.lines.count < Pry::Pager.page_size || !Pry.pager
+ out.puts text
+ return
+ end
# FIXME! Another JRuby hack
-
+ if jruby?
Pry::Pager.new(text, out).page
- #else
- # lesspipe { |less| less.puts text }
- #end
+ else
+ lesspipe { |less| less.puts text }
+ end
rescue Errno::ENOENT
simple_pager(text, out)
rescue Errno::EPIPE

0 comments on commit 557a917

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