mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Add trailing slash to :Gmove completion
This commit is contained in:
@@ -1064,7 +1064,9 @@ function! s:MoveComplete(A,L,P)
|
|||||||
if a:A =~ '^/'
|
if a:A =~ '^/'
|
||||||
return s:repo().superglob(a:A)
|
return s:repo().superglob(a:A)
|
||||||
else
|
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
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user