Skip to content

Commit b43dc5d

Browse files
committed
util: resolve module root
Resolve the module root to the true path. All other path expansions in Vim are the resolved path, so the module root path should also be the resolved path. Fixes fatih#2913
1 parent e3bcc4c commit b43dc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/go/util.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function! go#util#ModuleRoot() abort
144144
return expand('%:p:h')
145145
endif
146146

147-
return fnamemodify(l:module, ':p:h')
147+
return resolve(fnamemodify(l:module, ':p:h'))
148148
endfunction
149149

150150
" Run a shell command.

0 commit comments

Comments
 (0)