Rescue StopPaging in Pry.page

This commit is contained in:
Ryan Fitzgerald 2013-11-02 18:50:04 -07:00
parent 8b0fe8930f
commit 476435cf9a
1 changed files with 1 additions and 0 deletions

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