]> granicus.if.org Git - vim/commitdiff
patch 8.2.0584: viminfo file uses obsolete function file_readable() v8.2.0584
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Apr 2020 19:04:41 +0000 (21:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Apr 2020 19:04:41 +0000 (21:04 +0200)
Problem:    Viminfo file uses obsolete function file_readable().
Solution:   Use filereadable(). (closes #5934)

src/session.c
src/version.c

index 5bebb05bbabddaaeafd14ba181229b049da85281..3f5d4c611fe6e82fb17160d7a643b716d974f026 100644 (file)
@@ -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;
index c0c2e9855f6d89b54a30e7cf431216aaa016715e..c8a1d556c070b566a5a93b67799d5e4bd8988d64 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    584,
 /**/
     583,
 /**/