Permalink
Browse files

Merge pull request #714 from voxik/fix-lesspipe-for-ri

Fix 'lesspipe' for ri.
  • Loading branch information...
r-obert committed Sep 17, 2012
2 parents 292b737 + 8bfb4ea commit 4a7d06ea7e70af24001538120bed7491425dd9ba
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/pry/commands/ri.rb
View
4 lib/pry/commands/ri.rb 100644 → 100755
@@ -21,7 +21,9 @@ def process(spec)
subclass.class_eval do
def page
- Pry::Helpers::BaseHelpers.lesspipe {|less| yield less}
+ paging_text = StringIO.new
+ yield paging_text
+ Pry::Pager.page(paging_text.string)
end
def formatter(io)

0 comments on commit 4a7d06e

Please sign in to comment.