Skip to content

Commit

Permalink
Fix prompt list size and colorized code line size to match input line…
Browse files Browse the repository at this point in the history
… size
  • Loading branch information
tompng authored and ko1 committed Sep 25, 2023
1 parent 3d0f4e3 commit 3d822a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/debug/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def readline_setup prompt
Reline.prompt_proc = -> args, *kw do
case state = parse_input(args.first, commands)
when nil, :command
[prompt, prompt]
[prompt]
when :ruby
[prompt.sub('rdbg'){colorize('ruby', [:RED])}] * 2
end
[prompt.sub('rdbg'){colorize('ruby', [:RED])}]
end * args.size
end

Reline.completion_proc = -> given do
Expand Down Expand Up @@ -96,7 +96,7 @@ def readline_setup prompt
when nil
buff
when :ruby
colorize_code(buff.chomp)
colorize_code(buff)
end
end unless CONFIG[:no_hint]

Expand Down

0 comments on commit 3d822a1

Please sign in to comment.