aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/debug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/debug.rb b/lib/irb/debug.rb
index 514395605f..1ec2335a8e 100644
--- a/lib/irb/debug.rb
+++ b/lib/irb/debug.rb
@@ -64,7 +64,7 @@ module IRB
unless output.strip.empty?
cmd = output.split(/\s/, 2).first
- if DEBUGGER__.commands.key?(cmd)
+ if !complete && DEBUGGER__.commands.key?(cmd)
output = output.sub(/\n$/, " # debug command\n")
end
end