From c74aa8a4a4526833e28332aceed6dc742d40d9e3 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sat, 9 Nov 2013 17:46:00 -0500 Subject: [PATCH] Fix paging on jruby [Fixes #992] --- lib/pry/pager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/pager.rb b/lib/pry/pager.rb index 4bce42ae..536cdc8e 100644 --- a/lib/pry/pager.rb +++ b/lib/pry/pager.rb @@ -46,7 +46,7 @@ class Pry::Pager break if chunk.size < page_size if text_array.size > page_size puts "\n --- Press enter to continue ( q to break ) --- " - break if $stdin.gets.chomp == "q" + break if Readline.readline.chomp == "q" end end end