mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Rescue StopPaging in Pry.page
This commit is contained in:
parent
8b0fe8930f
commit
476435cf9a
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ module Pry::Pager
|
|||
def self.page(text, out = $stdout)
|
||||
pager = best_available(out)
|
||||
pager << text
|
||||
rescue StopPaging
|
||||
ensure
|
||||
pager.close if pager
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue