From 476435cf9ad67adc1788770eb1a71f0a8f979bc5 Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Sat, 2 Nov 2013 18:50:04 -0700 Subject: [PATCH] Rescue StopPaging in Pry.page --- lib/pry/pager.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pry/pager.rb b/lib/pry/pager.rb index 4c1f8b4a..e1cfbf8b 100644 --- a/lib/pry/pager.rb +++ b/lib/pry/pager.rb @@ -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