Permalink
Browse files

cleaning the file path to show

  • Loading branch information...
1 parent a981bc2 commit 3498400ed3b3a8b78b4d68cbc6a08e32c9843910 @jugyo committed Oct 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ir_b.rb
View
@@ -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

0 comments on commit 3498400

Please sign in to comment.