Просмотр исходного кода

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

Michael Henry 10 месяцев назад
Родитель
Сommit
bb014a19a4
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      plugin/bufexplorer.vim

+ 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