diff --git a/lib/pry/commands/whereami.rb b/lib/pry/commands/whereami.rb index 2ec82252..1cf4bab7 100644 --- a/lib/pry/commands/whereami.rb +++ b/lib/pry/commands/whereami.rb @@ -109,7 +109,7 @@ class Pry end def top_level? - target_self == TOPLEVEL_BINDING.eval("self") + target_self == Pry.main end def handle_internal_binding