Skip to content

Commit

Permalink
Be quite in internal bindings [Fixes pry#7]
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Aug 13, 2012
1 parent a021c91 commit 6b056b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry-stack_explorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def bindings_equal?(b1, b2)
# monkey-patch the whereami command to show some frame information,
# useful for navigating stack.
Pry.config.commands.before_command("whereami") do |num|
if PryStackExplorer.frame_manager(_pry_)
if PryStackExplorer.frame_manager(_pry_) && !internal_binding?(target)
bindings = PryStackExplorer.frame_manager(_pry_).bindings
binding_index = PryStackExplorer.frame_manager(_pry_).binding_index

Expand Down

0 comments on commit 6b056b3

Please sign in to comment.