vim-patch:8.2.0584: viminfo file uses obsolete function file_readable()

Problem:    Viminfo file uses obsolete function file_readable().
Solution:   Use filereadable(). (closes vim/vim#5934)
c5f33db888
This commit is contained in:
Jan Edmund Lazo 2020-04-17 19:03:49 -04:00
parent fb4c7a53cf
commit 6f7141dd76
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -799,7 +799,7 @@ static int makeopens(FILE *fd, char_u *dirnow)
//
if (fprintf(fd, "%s",
"let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"\n"
"if file_readable(s:sx)\n"
"if filereadable(s:sx)\n"
" exe \"source \" . fnameescape(s:sx)\n"
"endif\n") < 0) {
return FAIL;