motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ed1ff363dfd07d24517187b021bb1c6f2dfcc810 (tree)
parent e064f427701e0a058f166c90bfb89f380d54c973
Author: Tim Pope <code@tpope.net>
Date:   Wed, 20 Apr 2022 18:29:37 -0400

Remove another acwrite check

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -31,7 +31,7 @@ function! FugitiveGitDir(...) abort endif return dir =~# s:bad_git_dir ? '' : dir elseif type(a:1) == type(0) && a:1 isnot# 0 - if a:1 == bufnr('') && (!exists('b:git_dir') || b:git_dir =~# s:bad_git_dir) && &buftype =~# '^\%(nowrite\|acwrite\)\=$' + if a:1 == bufnr('') && (!exists('b:git_dir') || b:git_dir =~# s:bad_git_dir) && &buftype =~# '^\%(nowrite\)\=$' let b:git_dir = FugitiveExtractGitDir(a:1) endif let dir = getbufvar(a:1, 'git_dir')