parent
ba1208c3f5
commit
90358248e3
|
@ -297,7 +297,8 @@ function! s:show_dir(cnt) abort
|
||||||
let num = s:numfiles
|
let num = s:numfiles
|
||||||
let entries = {}
|
let entries = {}
|
||||||
let cwd = escape(getcwd(), '\')
|
let cwd = escape(getcwd(), '\')
|
||||||
let files = filter(map(copy(v:oldfiles), 'fnamemodify(resolve(v:val), ":p")'), 'match(v:val, cwd) == 0')
|
let files = filter(map(copy(v:oldfiles),
|
||||||
|
\ 'glob(fnameescape(fnamemodify(resolve(v:val), ":p")))'), 'match(v:val, cwd) == 0')
|
||||||
|
|
||||||
if !empty(files)
|
if !empty(files)
|
||||||
if exists('s:last_message')
|
if exists('s:last_message')
|
||||||
|
@ -351,7 +352,7 @@ function! s:show_files(cnt) abort
|
||||||
let entries = {}
|
let entries = {}
|
||||||
|
|
||||||
for fname in v:oldfiles
|
for fname in v:oldfiles
|
||||||
let abs_path = glob(fnamemodify(resolve(fname), ':p'))
|
let abs_path = glob(fnameescape(fnamemodify(resolve(fname), ':p')))
|
||||||
|
|
||||||
" filter duplicates, bookmarks and entries from the skiplist
|
" filter duplicates, bookmarks and entries from the skiplist
|
||||||
if has_key(entries, abs_path)
|
if has_key(entries, abs_path)
|
||||||
|
|
Loading…
Reference in a new issue