Karsten Hopp 734e67
To: vim_dev@googlegroups.com
Karsten Hopp 734e67
Subject: Patch 7.4.885
Karsten Hopp 734e67
Fcc: outbox
Karsten Hopp 734e67
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 734e67
Mime-Version: 1.0
Karsten Hopp 734e67
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 734e67
Content-Transfer-Encoding: 8bit
Karsten Hopp 734e67
------------
Karsten Hopp 734e67
Karsten Hopp 734e67
Patch 7.4.885
Karsten Hopp 734e67
Problem:    When doing an upwards search without wildcards the search fails if
Karsten Hopp 734e67
            the initial directory doesn't exist.
Karsten Hopp 734e67
Solution:   Fix the non-wildcard case. (Stefan Kempf)
Karsten Hopp 734e67
Files:      src/misc2.c
Karsten Hopp 734e67
Karsten Hopp 734e67
Karsten Hopp 734e67
*** ../vim-7.4.884/src/misc2.c	2015-09-25 16:37:57.231680454 +0200
Karsten Hopp 734e67
--- src/misc2.c	2015-09-29 12:03:09.548854560 +0200
Karsten Hopp 734e67
***************
Karsten Hopp 734e67
*** 4369,4389 ****
Karsten Hopp 734e67
  		temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
Karsten Hopp 734e67
  				 + STRLEN(search_ctx->ffsc_fix_path + len)
Karsten Hopp 734e67
  				 + 1));
Karsten Hopp 734e67
! 	    }
Karsten Hopp 734e67
  
Karsten Hopp 734e67
! 	    if (temp == NULL || wc_path == NULL)
Karsten Hopp 734e67
! 	    {
Karsten Hopp 734e67
! 		vim_free(buf);
Karsten Hopp 734e67
! 		vim_free(temp);
Karsten Hopp 734e67
  		vim_free(wc_path);
Karsten Hopp 734e67
! 		goto error_return;
Karsten Hopp 734e67
  	    }
Karsten Hopp 734e67
- 
Karsten Hopp 734e67
- 	    STRCPY(temp, search_ctx->ffsc_fix_path + len);
Karsten Hopp 734e67
- 	    STRCAT(temp, search_ctx->ffsc_wc_path);
Karsten Hopp 734e67
- 	    vim_free(search_ctx->ffsc_wc_path);
Karsten Hopp 734e67
- 	    vim_free(wc_path);
Karsten Hopp 734e67
- 	    search_ctx->ffsc_wc_path = temp;
Karsten Hopp 734e67
  	}
Karsten Hopp 734e67
  #endif
Karsten Hopp 734e67
  	vim_free(buf);
Karsten Hopp 734e67
--- 4369,4388 ----
Karsten Hopp 734e67
  		temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
Karsten Hopp 734e67
  				 + STRLEN(search_ctx->ffsc_fix_path + len)
Karsten Hopp 734e67
  				 + 1));
Karsten Hopp 734e67
! 		if (temp == NULL || wc_path == NULL)
Karsten Hopp 734e67
! 		{
Karsten Hopp 734e67
! 		    vim_free(buf);
Karsten Hopp 734e67
! 		    vim_free(temp);
Karsten Hopp 734e67
! 		    vim_free(wc_path);
Karsten Hopp 734e67
! 		    goto error_return;
Karsten Hopp 734e67
! 		}
Karsten Hopp 734e67
  
Karsten Hopp 734e67
! 		STRCPY(temp, search_ctx->ffsc_fix_path + len);
Karsten Hopp 734e67
! 		STRCAT(temp, search_ctx->ffsc_wc_path);
Karsten Hopp 734e67
! 		vim_free(search_ctx->ffsc_wc_path);
Karsten Hopp 734e67
  		vim_free(wc_path);
Karsten Hopp 734e67
! 		search_ctx->ffsc_wc_path = temp;
Karsten Hopp 734e67
  	    }
Karsten Hopp 734e67
  	}
Karsten Hopp 734e67
  #endif
Karsten Hopp 734e67
  	vim_free(buf);
Karsten Hopp 734e67
*** ../vim-7.4.884/src/version.c	2015-09-25 20:30:55.192585861 +0200
Karsten Hopp 734e67
--- src/version.c	2015-09-29 12:07:20.382179579 +0200
Karsten Hopp 734e67
***************
Karsten Hopp 734e67
*** 743,744 ****
Karsten Hopp 734e67
--- 743,746 ----
Karsten Hopp 734e67
  {   /* Add new patch number below this line */
Karsten Hopp 734e67
+ /**/
Karsten Hopp 734e67
+     885,
Karsten Hopp 734e67
  /**/
Karsten Hopp 734e67
Karsten Hopp 734e67
-- 
Karsten Hopp 734e67
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 734e67
27. You refer to your age as 3.x.
Karsten Hopp 734e67
Karsten Hopp 734e67
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 734e67
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 734e67
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 734e67
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///