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

Use `buf.fullpath` and `buf.isdir` for icons.

This allows a directory icon to be chosen.
Michael Henry 10 месяцев назад
Родитель
Сommit
95133ce38d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugin/bufexplorer.vim

+ 1 - 1
plugin/bufexplorer.vim

@@ -805,7 +805,7 @@ function! s:BuildBufferList()
         let line = buf.attributes." "
 
         if exists("g:loaded_webdevicons")
-            let line .= WebDevIconsGetFileTypeSymbol(buf.shortname)
+            let line .= WebDevIconsGetFileTypeSymbol(buf.fullname, buf.isdir)
             let line .= " "
         endif