summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index dc48f0de1cc..74e06e010c5 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -299,7 +299,7 @@ class Context
when /^\s*b(?:reak)?\s+(?:(.+):)?(.+)$/
pos = $2
- file = File.basename($1) if $1
+ file = File.basename($1 || file)
if pos =~ /^\d+$/
pname = pos
pos = pos.to_i