1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

Fix 'lesspipe' for ri.
This commit is contained in:
Robert Gleeson 2012-09-16 18:19:44 -07:00
commit 4a7d06ea7e

4
lib/pry/commands/ri.rb Normal file → Executable file
View file

@ -21,7 +21,9 @@ class Pry
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)