Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleaning the file path to show

  • Loading branch information...
commit 3498400ed3b3a8b78b4d68cbc6a08e32c9843910 1 parent a981bc2
@jugyo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ir_b.rb
View
2  lib/ir_b.rb
@@ -29,7 +29,7 @@ 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 }&line=#{ ir_b_line }\e[0m"
+ puts "#{file}:#{ir_b_line} \e[90mtxmt://open/?url=file://#{ File.expand_path(file).sub(File.expand_path('~'), '~') }&line=#{ ir_b_line }\e[0m"
File.open(file).each_with_index do |line, index|
line_n = index + 1
Please sign in to comment.
Something went wrong with that request. Please try again.