To: vim_dev@googlegroups.com Subject: Patch 8.2.0584 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0584 Problem: Viminfo file uses obsolete function file_readable(). Solution: Use filereadable(). (closes #5934) Files: src/session.c *** ../vim-8.2.0583/src/session.c 2020-01-26 15:52:33.023833239 +0100 --- src/session.c 2020-04-16 21:03:01.730155425 +0200 *************** *** 898,904 **** // Lastly, execute the x.vim file if it exists. if (put_line(fd, "let s:sx = expand(\":p:r\").\"x.vim\"") == FAIL ! || put_line(fd, "if file_readable(s:sx)") == FAIL || put_line(fd, " exe \"source \" . fnameescape(s:sx)") == FAIL || put_line(fd, "endif") == FAIL) return FAIL; --- 898,904 ---- // Lastly, execute the x.vim file if it exists. if (put_line(fd, "let s:sx = expand(\":p:r\").\"x.vim\"") == 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; *** ../vim-8.2.0583/src/version.c 2020-04-16 13:00:25.583729080 +0200 --- src/version.c 2020-04-16 21:04:00.481998166 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 584, /**/ -- Hacker: Someone skilled in computer programming (good guy). Cracker: A hacker that uses his skills to crack software (bad guy). /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///