Skip to content

Commit f92d8bf

Browse files
committed
Don't process malformed file names
I'm not sure what the cause was, but I ended up with an entry in my file list that was just some regex pattern. So the processing in this loop was crashing at the `glob` below. Fix this by ignoring non-existant files.
1 parent 4e089df commit f92d8bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/startify.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,10 @@ function! s:filter_oldfiles_unsafe(path_prefix, path_format, use_env) abort
654654
break
655655
endif
656656

657+
if !filereadable(fname)
658+
continue
659+
endif
660+
657661
if s:is_in_skiplist(fname)
658662
" https://github.com/mhinz/vim-startify/issues/353
659663
continue

0 commit comments

Comments
 (0)