Patch 7.4.674 (after 7.4.672)
Problem:    Missing changes in one file.
Solution:   Also change the win32 file.
Files:      src/os_win32.c


*** ../vim-7.4.673/src/os_win32.c       2015-01-20 19:39:31.651524062 +0100
--- src/os_win32.c      2015-03-21 16:56:22.139160233 +0100
***************
*** 3378,3387 ****
  
  /*
   * Return 1 if "name" can be executed, 0 if not.
   * Return -1 if unknown.
   */
      int
! mch_can_exe(char_u *name, char_u **path)
  {
      char_u    buf[_MAX_PATH];
      int               len = (int)STRLEN(name);
--- 3378,3388 ----
  
  /*
   * Return 1 if "name" can be executed, 0 if not.
+  * If "use_path" is FALSE only check if "name" is executable.
   * Return -1 if unknown.
   */
      int
! mch_can_exe(char_u *name, char_u **path, int use_path)
  {
      char_u    buf[_MAX_PATH];
      int               len = (int)STRLEN(name);
***************
*** 3389,3394 ****
--- 3390,3400 ----
  
      if (len >= _MAX_PATH)     /* safety check */
        return FALSE;
+     if (!use_path)
+     {
+       /* TODO: check if file is really executable. */
+       return mch_getperm(name) != -1 && !mch_isdir(name);
+     }
  
      /* If there already is an extension try using the name directly.  Also do
       * this with a Unix-shell like 'shell'. */
*** ../vim-7.4.673/src/version.c        2015-03-21 21:46:07.566423633 +0100
--- src/version.c       2015-03-21 22:16:29.749822253 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     674,
  /**/

-- 
Advice to worms:  Sleep late.

 /// 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