remove filereadable() check for bookmarks
People want to bookmark directories, too. And I don't want to test for 2 things (filereadable() || isdirectory()), because people should know what they bookmark anyway. Closes #16.
This commit is contained in:
parent
74a5d12785
commit
7ab3ca8565
|
@ -84,9 +84,6 @@ function! s:insane_in_the_membrane() abort
|
|||
if exists('g:startify_bookmarks')
|
||||
call append('$', '')
|
||||
for fname in g:startify_bookmarks
|
||||
if !filereadable(expand(fname))
|
||||
continue
|
||||
endif
|
||||
let cnt += 1
|
||||
call append('$', ' ['. cnt .']'. repeat(' ', 3 - strlen(string(cnt))) . fname)
|
||||
execute 'nnoremap <buffer> '. cnt .' :edit '. startify#escape(fname) .' <bar> lcd %:h<cr>'
|
||||
|
|
Loading…
Reference in a new issue