mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user