Explorar o código

Fix skiplist matching on Windows

See issue #52

In order to enable platform-agnostic patterns in `g:startify_skiplist`, as long as `shellslash` is set in a user's `.vimrc` before loading the plugin, patterns in `g:startify_skiplist` will work even if they use forward slashes.
Alex George %!s(int64=11) %!d(string=hai) anos
pai
achega
8954e92fa7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -280,7 +280,7 @@ function! s:show_dir(cnt) abort
     endif
 
     for fname in files
-      let fullpath = resolve(fnamemodify(fname, ':p'))
+      let fullpath = resolve(fnamemodify(glob(fname), ':p'))
 
       " filter duplicates, bookmarks and entries from the skiplist
       if has_key(entries, fullpath)
@@ -326,7 +326,7 @@ function! s:show_files(cnt) abort
   let entries = {}
 
   for fname in v:oldfiles
-    let fullpath = resolve(fnamemodify(fname, ':p'))
+    let fullpath = resolve(fnamemodify(glob(fname), ':p'))
 
     " filter duplicates, bookmarks and entries from the skiplist
     if has_key(entries, fullpath)