Added simple file readable check
This commit is contained in:
parent
ad4525689e
commit
a39f44e72d
@ -238,6 +238,13 @@ endfunction
|
||||
|
||||
" {{{1 s:get_main_recurse
|
||||
function! s:get_main_recurse(file)
|
||||
"
|
||||
" Check if file is readable
|
||||
"
|
||||
if !filereadable(a:file)
|
||||
return 0
|
||||
endif
|
||||
|
||||
"
|
||||
" Check if current file is a main file
|
||||
"
|
||||
|
Loading…
x
Reference in New Issue
Block a user