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 de6c05720cdf74c0218218d7207f700232a5b6dc (tree)
parent d16cd9ced1feffb53b8457357aab17be72addeae
Author: Carlos Coelho <carlos@vinta.com.br>
Date:   Tue, 14 Nov 2017 10:58:31 -0300

Use NERDTree.root instead of removed NERDTreeRoot

As of scrooloose/nerdtree@d36b793, it was recommended to use
NERDTree.root instead of deprecated NERDTreeRoot. Also, this command
seems to be recently removed since it was throwing an Undefined
variable: b:NERDTreeRoot when starting Vim.

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

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