summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index b15f4d4b59..abb068f2c0 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -272,6 +272,7 @@ class Context
while prompt and input = readline("(rdb:%d) "%thnum(), true)
catch(:debug_error) do
if input == ""
+ next unless DEBUG_LAST_CMD[0]
input = DEBUG_LAST_CMD[0]
stdout.print input, "\n"
else