mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
fb4c7a53cf
commit
6f7141dd76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user