[History] Fix invalid regular expression for filtering .git directory

Close #91
This commit is contained in:
Junegunn Choi
2016-02-24 12:08:22 +09:00
parent b9285c87db
commit 0352153789

View File

@@ -274,7 +274,7 @@ endfunction
function! s:all_files()
return extend(
\ filter(reverse(copy(v:oldfiles)),
\ "v:val !~ 'fugitive:\\|__Tagbar__\\|NERD_tree\\|^/tmp/\\|.git/'"),
\ "v:val !~ 'fugitive:\\|__Tagbar__\\|NERD_tree\\|^/tmp/\\|\\.git/'"),
\ filter(map(s:buflisted(), 'bufname(v:val)'), '!empty(v:val)'))
endfunction