From b3affc834d53e9c9ac763d0cdc12da6d434e3481 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 31 Jan 2010 16:04:10 -0500 Subject: [PATCH] Add trailing slash to :Gmove completion --- plugin/fugitive.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 290caa5..5edd0d5 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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