1
0
Fork 0
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:
Ryan Fitzgerald 2013-11-02 18:50:04 -07:00
parent 8b0fe8930f
commit 476435cf9a

View file

@ -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