Skip earlier to prevent I/O on slow file systems
Fixes https://github.com/mhinz/vim-startify/issues/353
This commit is contained in:
parent
56745d99ca
commit
4d885829f6
|
@ -550,6 +550,11 @@ function! s:filter_oldfiles(path_prefix, path_format, use_env) abort
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if s:is_in_skiplist(fname)
|
||||||
|
" https://github.com/mhinz/vim-startify/issues/353
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
let absolute_path = fnamemodify(resolve(fname), ":p")
|
let absolute_path = fnamemodify(resolve(fname), ":p")
|
||||||
" filter duplicates, bookmarks and entries from the skiplist
|
" filter duplicates, bookmarks and entries from the skiplist
|
||||||
if has_key(entries, absolute_path)
|
if has_key(entries, absolute_path)
|
||||||
|
@ -601,6 +606,11 @@ function! s:filter_oldfiles_unsafe(path_prefix, path_format, use_env) abort
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if s:is_in_skiplist(fname)
|
||||||
|
" https://github.com/mhinz/vim-startify/issues/353
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
let absolute_path = glob(fnamemodify(fname, ":p"))
|
let absolute_path = glob(fnamemodify(fname, ":p"))
|
||||||
if empty(absolute_path)
|
if empty(absolute_path)
|
||||||
\ || has_key(entries, absolute_path)
|
\ || has_key(entries, absolute_path)
|
||||||
|
|
Loading…
Reference in a new issue