To: vim_dev@googlegroups.com Subject: Patch 8.2.3613 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3613 Problem: :find test fails. Solution: Put length check inside if block. Files: src/findfile.c *** ../vim-8.2.3612/src/findfile.c 2021-11-17 18:00:28.189010856 +0000 --- src/findfile.c 2021-11-17 19:00:30.627217727 +0000 *************** *** 1735,1745 **** proc->pr_WindowPtr = (APTR)-1L; # endif - if (len == 0) - return NULL; - if (first == TRUE) { // copy file name into NameBuff, expanding environment variables save_char = ptr[len]; ptr[len] = NUL; --- 1735,1745 ---- proc->pr_WindowPtr = (APTR)-1L; # endif if (first == TRUE) { + if (len == 0) + return NULL; + // copy file name into NameBuff, expanding environment variables save_char = ptr[len]; ptr[len] = NUL; *** ../vim-8.2.3612/src/version.c 2021-11-17 18:22:52.980044225 +0000 --- src/version.c 2021-11-17 19:01:40.402957373 +0000 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3613, /**/ -- Advice to worms: Sleep late. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///