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 committed Aug 16, 2023
1 parent 4ec9d7a commit df0b653
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 df0b653

Please sign in to comment.