File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
11
11
require ENV['TM_SUPPORT_PATH'] + '/lib/tm/process'
12
12
require ENV['TM_SUPPORT_PATH'] + '/lib/tm/save_current_document'
13
+ require 'pathname'
13
14
14
15
# TextMate's special TM_GODEF or expect 'godef' on PATH
15
16
godef_cmd = ENV['TM_GODEF'] || 'godef'
@@ -37,7 +38,8 @@ out, err = TextMate::Process.run(*args)
37
38
38
39
if err.nil? || err == ''
39
40
file_details = out.split(':')
40
- TextMate.go_to(:file => file_details[0],
41
+ file = Pathname.new(file_details[0]).realpath
42
+ TextMate.go_to(:file => file,
41
43
:line => file_details[1],
42
44
:column => file_details[2].to_i)
43
45
elsif err.casecmp "godef: no identifier found";
@@ -52,7 +54,7 @@ end</string>
52
54
<key >inputFormat </key >
53
55
<string >text </string >
54
56
<key >keyEquivalent </key >
55
- <string >@D </string >
57
+ <string >^. </string >
56
58
<key >name </key >
57
59
<string >Go to Definition </string >
58
60
<key >outputCaret </key >
You can’t perform that action at this time.
0 commit comments