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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20211117190223.EDE8C1C03A0%40moolenaar.net.