Commit 0fbedf049b2edf5111beabf74308bf096e145320

go to file - ability to specify a full-path with a filename was broken somewhere along the way.

Commit diff

Commands/Go to file.tmCommand

 
1818).strip
1919
2020filepath = TextMate::UI.request_string(:title => "Go to file", :prompt => "Enter a filename with path", :default => "" ) if filepath.empty?
21
21
2222if filepath.nil? || filepath.empty?
2323 puts "Canceled"
2424 exit_show_tool_tip
2525end
2626
27
28if /^\//.match(filepath) && File.exists?(filepath)
29 tm_open(filepath)
30 exit_show_tool_tip
31end
32
3327line = nil
3428if /^(.+):(\d+)$/.match(filepath)
3529 filepath = $1
3630 line = $2
3731end
32
33if /^\//.match(filepath) && File.exists?(filepath)
34 tm_open(filepath, :line => line)
35 exit_show_tool_tip
36end
37
3838
3939filepath.gsub!(/\.{1,2}\//, "")
4040filepath.gsub!(/^\//, "") # remove the beginning slash
toggle raw diff