Patch 7.4.885
Problem:    When doing an upwards search without wildcards the search fails if
            the initial directory doesn't exist.
Solution:   Fix the non-wildcard case. (Stefan Kempf)
Files:      src/misc2.c


*** ../vim-7.4.884/src/misc2.c  2015-09-25 16:37:57.231680454 +0200
--- src/misc2.c 2015-09-29 12:03:09.548854560 +0200
***************
*** 4369,4389 ****
                temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
                                 + STRLEN(search_ctx->ffsc_fix_path + len)
                                 + 1));
!           }
  
!           if (temp == NULL || wc_path == NULL)
!           {
!               vim_free(buf);
!               vim_free(temp);
                vim_free(wc_path);
!               goto error_return;
            }
- 
-           STRCPY(temp, search_ctx->ffsc_fix_path + len);
-           STRCAT(temp, search_ctx->ffsc_wc_path);
-           vim_free(search_ctx->ffsc_wc_path);
-           vim_free(wc_path);
-           search_ctx->ffsc_wc_path = temp;
        }
  #endif
        vim_free(buf);
--- 4369,4388 ----
                temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
                                 + STRLEN(search_ctx->ffsc_fix_path + len)
                                 + 1));
!               if (temp == NULL || wc_path == NULL)
!               {
!                   vim_free(buf);
!                   vim_free(temp);
!                   vim_free(wc_path);
!                   goto error_return;
!               }
  
!               STRCPY(temp, search_ctx->ffsc_fix_path + len);
!               STRCAT(temp, search_ctx->ffsc_wc_path);
!               vim_free(search_ctx->ffsc_wc_path);
                vim_free(wc_path);
!               search_ctx->ffsc_wc_path = temp;
            }
        }
  #endif
        vim_free(buf);
*** ../vim-7.4.884/src/version.c        2015-09-25 20:30:55.192585861 +0200
--- src/version.c       2015-09-29 12:07:20.382179579 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     885,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
27. You refer to your age as 3.x.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui