mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 22:51:20 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user