Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

disable colors

  • Loading branch information...
commit e0f6b1b573653b983c5932a6962ada7f53c47ac7 1 parent 51cb1bd
@jugyo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ir_b.rb
View
6 lib/ir_b.rb
@@ -29,16 +29,16 @@ class << self
def -(_binding)
file = _binding.eval '__FILE__'
ir_b_line = _binding.eval '__LINE__'
- puts "#{file}:#{ir_b_line} \e[90mtxmt://open/?url=file://#{ File.expand_path(file).sub(File.expand_path('~'), '~') }&line=#{ ir_b_line }\e[0m"
+ puts "#{file}:#{ir_b_line}"
File.open(file).each_with_index do |line, index|
line_n = index + 1
next unless line_n > (ir_b_line - 6)
break if line_n > (ir_b_line + 5)
if line_n == ir_b_line
- puts "\e[100m =>#{line_n.to_s.rjust(3)}: #{line.chomp} \e[0m"
+ puts " =>#{line_n.to_s.rjust(3)}: #{line.chomp}"
else
- puts "\e[90m#{line_n.to_s.rjust(6)}: #{line.chomp} \e[0m"
+ puts "#{line_n.to_s.rjust(6)}: #{line.chomp}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.