Add trailing slash to :Gmove completion

This commit is contained in:
Tim Pope
2010-01-31 16:04:10 -05:00
parent 06d6684d08
commit b3affc834d

View File

@@ -1064,7 +1064,9 @@ function! s:MoveComplete(A,L,P)
if a:A =~ '^/'
return s:repo().superglob(a:A)
else
return split(glob(a:A.'*'),"\n")
let matches = split(glob(a:A.'*'),"\n")
call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val')
return matches
endif
endfunction