Procházet zdrojové kódy

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

This allows a directory icon to be chosen.
Michael Henry před 1 rokem
rodič
revize
95133ce38d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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