diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-16 21:04:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-16 21:04:41 +0200 |
commit | c5f33db888d14225e5a3851563c9a7fc0b5a5564 (patch) | |
tree | 7bd2dcde77cf6af9646810562f9c8d17a70cecd5 /src | |
parent | cb711abf0f71d8c743cf73c76077f52e17732a8c (diff) | |
download | vim-git-c5f33db888d14225e5a3851563c9a7fc0b5a5564.tar.gz |
patch 8.2.0584: viminfo file uses obsolete function file_readable()v8.2.0584
Problem: Viminfo file uses obsolete function file_readable().
Solution: Use filereadable(). (closes #5934)
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c index 5bebb05bb..3f5d4c611 100644 --- a/src/session.c +++ b/src/session.c @@ -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; diff --git a/src/version.c b/src/version.c index c0c2e9855..c8a1d556c 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 584, +/**/ 583, /**/ 582, |