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 4fe6e46a0ace8196aa1946b91cd02e853f8db9da (tree)
parent 9bfb7857ecdc40f5245d38dc5b86bd4a8c7207a9
Author: Tim Pope <code@tpope.net>
Date:   Wed, 11 Apr 2012 16:41:43 -0400

Fix detection of netrw buffers

How long has this been broken?

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -161,7 +161,7 @@ endfunction augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p')) - autocmd FileType netrw call s:Detect(expand('<afile>:p')) + autocmd FileType netrw call s:Detect(expand('%:p')) autocmd User NERDTreeInit,NERDTreeNewRoot call s:Detect(b:NERDTreeRoot.path.str()) autocmd VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')