mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Reset color before printing SimplePager prompt
This commit is contained in:
parent
0928123eb4
commit
def1d745a9
1 changed files with 4 additions and 2 deletions
|
@ -93,8 +93,10 @@ module Pry::Pager
|
|||
@tracker.record line
|
||||
|
||||
if @tracker.page?
|
||||
@out.puts "\n<page break> --- Press enter to continue " \
|
||||
"( q<enter> to break ) --- <page break>"
|
||||
@out.print "\n"
|
||||
@out.print "\e[0m" if Pry.color
|
||||
@out.print "<page break> --- Press enter to continue " \
|
||||
"( q<enter> to break ) --- <page break>\n"
|
||||
raise StopPaging if Readline.readline.chomp == "q"
|
||||
@tracker.reset
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue