Skip to content

Commit df0b653

Browse files
committed
Fix prompt list size and colorized code line size to match input line size
1 parent 4ec9d7a commit df0b653

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/debug/console.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def readline_setup prompt
5656
Reline.prompt_proc = -> args, *kw do
5757
case state = parse_input(args.first, commands)
5858
when nil, :command
59-
[prompt, prompt]
59+
[prompt]
6060
when :ruby
61-
[prompt.sub('rdbg'){colorize('ruby', [:RED])}] * 2
62-
end
61+
[prompt.sub('rdbg'){colorize('ruby', [:RED])}]
62+
end * args.size
6363
end
6464

6565
Reline.completion_proc = -> given do
@@ -96,7 +96,7 @@ def readline_setup prompt
9696
when nil
9797
buff
9898
when :ruby
99-
colorize_code(buff.chomp)
99+
colorize_code(buff)
100100
end
101101
end unless CONFIG[:no_hint]
102102

0 commit comments

Comments
 (0)