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:
commit
4a7d06ea7e
1 changed files with 3 additions and 1 deletions
4
lib/pry/commands/ri.rb
Normal file → Executable file
4
lib/pry/commands/ri.rb
Normal file → Executable 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)
|
||||
|
|
Loading…
Reference in a new issue