Эх сурвалжийг харах

Suppress directory buffers when `g:bufExplorerShowDirectories == 0`.

Michael Henry 11 сар өмнө
parent
commit
bb014a19a4

+ 5 - 1
plugin/bufexplorer.vim

@@ -719,7 +719,11 @@ function! s:GetBufferInfo(bufnr)
         endfor
 
         let b.isdir = getftype(b.fullname) == "dir"
-        if b.isdir && g:bufExplorerShowDirectories == 1
+        if !g:bufExplorerShowDirectories && b.isdir
+            continue
+        endif
+
+        if b.isdir
             let b.shortname = "<DIRECTORY>"
         endif