mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -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 =~ '^/'
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user