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 b6dbb977596639b603cb4f597cb139d5cc1b8a41 (tree)
parent b1c3cdffc94c2cbe48777db5cf8bc9156b17d070
Author: Tim Pope <code@tpope.net>
Date:   Thu, 23 Dec 2021 15:14:39 -0500

Extend lazy detection to netrw

The requires dropping support for b:netrw_curdir, which was added in
fecd42864a4bb592d96af9f038475eea2163df58 for the vague reason of
handling "unusually named netrw buffers".  I'll figure out what to do
about those alleged buffers when one of them surfaces again.

Diffstat:
Mplugin/fugitive.vim | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -616,9 +616,8 @@ let g:io_fugitive = { augroup fugitive autocmd! - autocmd BufNewFile,BufReadPost * - \ call FugitiveDetect(+expand('<abuf>'), 0) - autocmd FileType netrw call FugitiveDetect(get(b:, 'netrw_curdir', +expand('<abuf>')), 1) + autocmd BufNewFile,BufReadPost * call FugitiveDetect(+expand('<abuf>'), 0) + autocmd FileType netrw call FugitiveDetect(+expand('<abuf>'), 0) autocmd FileType git \ call fugitive#MapCfile()