Commit 5516349f authored by Yasuhiro Matsumoto's avatar Yasuhiro Matsumoto Committed by David Symonds

misc/vim: complete packages in src directory

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/14454059
parent beca0e12
......@@ -86,6 +86,7 @@ function! go#complete#Package(ArgLead, CmdLine, CursorPos)
for dir in dirs
" this may expand to multiple lines
let root = split(expand(dir . '/pkg/' . s:goos . '_' . s:goarch), "\n")
call add(root, expand(dir . '/src'))
for r in root
for i in split(globpath(r, a:ArgLead.'*'), "\n")
if isdirectory(i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment