mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
make correct_indentation color respect Pry.color
This commit is contained in:
parent
dd407b0e85
commit
eae388a161
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,8 @@ class Pry
|
|||
# will be indented or un-indented by correctly.
|
||||
#
|
||||
class Indent
|
||||
include Helpers::BaseHelpers
|
||||
|
||||
# String containing the spaces to be inserted before the next line.
|
||||
attr_reader :indent_level
|
||||
|
||||
|
@ -224,7 +226,7 @@ class Pry
|
|||
end
|
||||
whitespace = ' ' * overhang
|
||||
|
||||
"#{move_up}#{prompt}#{CodeRay.scan(code, :ruby).term}#{whitespace}#{move_down}"
|
||||
"#{move_up}#{prompt}#{colorize_code(code)}#{whitespace}#{move_down}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue