mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.0584: viminfo file uses obsolete function file_readable()
Problem: Viminfo file uses obsolete function file_readable(). Solution: Use filereadable(). (closes #5934)
This commit is contained in:
parent
cb711abf0f
commit
c5f33db888
@ -898,7 +898,7 @@ makeopens(
|
||||
|
||||
// Lastly, execute the x.vim file if it exists.
|
||||
if (put_line(fd, "let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"") == FAIL
|
||||
|| put_line(fd, "if file_readable(s:sx)") == FAIL
|
||||
|| put_line(fd, "if filereadable(s:sx)") == FAIL
|
||||
|| put_line(fd, " exe \"source \" . fnameescape(s:sx)") == FAIL
|
||||
|| put_line(fd, "endif") == FAIL)
|
||||
return FAIL;
|
||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
584,
|
||||
/**/
|
||||
583,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user