mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix highlighting of cat command [Fix #1225]
This commit is contained in:
parent
06341dfcdd
commit
5591367c26
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ class Pry
|
|||
def decorate(content)
|
||||
content.code_type = code_type
|
||||
content.between(*between_lines).
|
||||
with_line_numbers(use_line_numbers?)
|
||||
with_line_numbers(use_line_numbers?).highlighted
|
||||
end
|
||||
|
||||
def code_type
|
||||
|
|
|
@ -16,7 +16,7 @@ class Pry
|
|||
set_file_and_dir_locals(backtrace_file, _pry_, _pry_.current_context)
|
||||
code = decorate(Pry::Code.from_file(backtrace_file).
|
||||
between(*start_and_end_line_for_code_window).
|
||||
with_marker(backtrace_line)).to_s
|
||||
with_marker(backtrace_line))
|
||||
"#{header}#{code}"
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Pry
|
|||
|
||||
content
|
||||
else
|
||||
decorate(Pry::Code(selected_input_items.first)).to_s
|
||||
decorate(Pry::Code(selected_input_items.first))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue