parent
9e865c823b
commit
7a2c7da36d
|
@ -533,6 +533,7 @@ function! s:filter_oldfiles_unsafe(path_prefix, path_format, use_env) abort
|
||||||
let counter = s:numfiles
|
let counter = s:numfiles
|
||||||
let entries = {}
|
let entries = {}
|
||||||
let oldfiles = []
|
let oldfiles = []
|
||||||
|
let is_dir = escape(s:sep, '\') . '$'
|
||||||
|
|
||||||
for fname in v:oldfiles
|
for fname in v:oldfiles
|
||||||
if counter <= 0
|
if counter <= 0
|
||||||
|
@ -542,8 +543,9 @@ function! s:filter_oldfiles_unsafe(path_prefix, path_format, use_env) abort
|
||||||
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)
|
||||||
\ || s:is_in_skiplist(absolute_path)
|
\ || (absolute_path =~ is_dir)
|
||||||
\ || match(absolute_path, path_prefix)
|
\ || match(absolute_path, path_prefix)
|
||||||
|
\ || s:is_in_skiplist(absolute_path)
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue