commit a90cc48c7a7b41ce366a07f91ccedc82cf2d0c1a (tree)
parent b0c74e2289a1c1617a6446184f6de77b88750133
Author: Tim Pope <code@tpope.net>
Date: Wed, 1 Aug 2012 10:35:52 -0400
Fix creation of files named index
Closes #231.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -2180,7 +2180,7 @@ augroup fugitive_files
autocmd BufReadCmd index{,.lock}
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
\ exe s:BufReadIndex() |
- \ else |
+ \ elseif filereadable(expand('<amatch>')) |
\ read <amatch> |
\ 1delete |
\ endif