Do not filter bookmarks anymore
This commit is contained in:
parent
61c1e360c8
commit
0bb969178d
|
@ -439,7 +439,6 @@ function! s:filter_oldfiles(path_prefix, path_format) abort
|
||||||
if has_key(entries, absolute_path)
|
if has_key(entries, absolute_path)
|
||||||
\ || !filereadable(absolute_path)
|
\ || !filereadable(absolute_path)
|
||||||
\ || s:is_in_skiplist(absolute_path)
|
\ || s:is_in_skiplist(absolute_path)
|
||||||
\ || (exists('g:startify_bookmarks') && s:is_bookmark(absolute_path))
|
|
||||||
\ || match(absolute_path, path_prefix)
|
\ || match(absolute_path, path_prefix)
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
@ -558,15 +557,6 @@ function! s:is_in_skiplist(arg) abort
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:is_bookmark {{{1
|
|
||||||
function! s:is_bookmark(arg) abort
|
|
||||||
for foo in map(filter(copy(g:startify_bookmarks), '!isdirectory(v:val)'), 'resolve(fnamemodify(v:val, ":p"))')
|
|
||||||
if foo == a:arg
|
|
||||||
return 1
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Function: s:set_cursor {{{1
|
" Function: s:set_cursor {{{1
|
||||||
function! s:set_cursor() abort
|
function! s:set_cursor() abort
|
||||||
let s:oldline = exists('s:newline') ? s:newline : 5
|
let s:oldline = exists('s:newline') ? s:newline : 5
|
||||||
|
|
Loading…
Reference in a new issue