From e0e53def9843d7198f2a845be627fc11a1912105 Mon Sep 17 00:00:00 2001 From: RealSaltyFish Date: Tue, 14 Dec 2021 10:16:21 -0500 Subject: [PATCH 1/2] [fix] NERDTree automatic refresh #224 --- plugin/webdevicons.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index db53327..22b0eed 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -410,7 +410,7 @@ function! s:CursorHoldUpdate() endif " Do not update when a special buffer is selected - if !empty(&l:buftype) + if !empty(&l:buftype) && &l:filetype != "nerdtree" return endif From 59021b8be0ed4bbe7bfe383fa1bae3ba1cf20be2 Mon Sep 17 00:00:00 2001 From: RealSaltyFish Date: Sun, 19 Dec 2021 01:53:33 -0500 Subject: [PATCH 2/2] Fixed style issues --- plugin/webdevicons.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 22b0eed..7b53658 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -410,7 +410,7 @@ function! s:CursorHoldUpdate() endif " Do not update when a special buffer is selected - if !empty(&l:buftype) && &l:filetype != "nerdtree" + if !empty(&l:buftype) && &l:filetype !=# 'nerdtree' return endif