diff options
author | 0xAB <0xAB@protonmail.com> | 2017-09-01 14:42:59 +0100 |
---|---|---|
committer | 0xAB <0xAB@protonmail.com> | 2017-09-01 14:42:59 +0100 |
commit | 274156b1eb1c8c0e34e08c10c2ba9416946fb081 (patch) | |
tree | 86964667c8e526ab2da7028a50ee35c6408a5571 | |
parent | a93e9a924bf2bba5276fa65440ec3dca9c1deb8b (diff) | |
download | pry-274156b1eb1c8c0e34e08c10c2ba9416946fb081.tar.gz |
if 'pry' is passed, don't continue
-rw-r--r-- | lib/pry/helpers/colors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/helpers/colors.rb b/lib/pry/helpers/colors.rb index b1c7967b..e79b8ab2 100644 --- a/lib/pry/helpers/colors.rb +++ b/lib/pry/helpers/colors.rb @@ -14,7 +14,7 @@ module Pry::Helpers::Colors } color_enabled = lambda do |pry| - (pry and pry.color) or (defined?(_pry_) ? _pry_.color : Pry.color) + (pry and return pry.color) or (defined?(_pry_) ? _pry_.color : Pry.color) end COLORS.each_pair do |color, value| |