소스 검색

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 11 년 전
부모
커밋
8954e92fa7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)