home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.2 / 7.2.326 < prev    next >
Encoding:
Internet Message Format  |  2010-01-05  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.326
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.326
  11. Problem:    Win32: $HOME doesn't work when %HOMEPATH% is not defined.
  12. Solution:   Use "\" for %HOMEPATH% when it is not defined.
  13. Files:        src/misc1.c
  14.  
  15.  
  16. *** ../vim-7.2.325/src/misc1.c    2009-12-02 17:47:46.000000000 +0100
  17. --- src/misc1.c    2010-01-05 19:53:23.000000000 +0100
  18. ***************
  19. *** 3470,3476 ****
  20.   
  21.       homedrive = mch_getenv((char_u *)"HOMEDRIVE");
  22.       homepath = mch_getenv((char_u *)"HOMEPATH");
  23. !     if (homedrive != NULL && homepath != NULL
  24.                  && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
  25.       {
  26.           sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
  27. --- 3470,3478 ----
  28.   
  29.       homedrive = mch_getenv((char_u *)"HOMEDRIVE");
  30.       homepath = mch_getenv((char_u *)"HOMEPATH");
  31. !     if (homepath == NULL || *homepath == NUL)
  32. !         homepath = "\\";
  33. !     if (homedrive != NULL
  34.                  && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
  35.       {
  36.           sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
  37. *** ../vim-7.2.325/src/version.c    2009-12-31 14:52:48.000000000 +0100
  38. --- src/version.c    2010-01-06 17:39:23.000000000 +0100
  39. ***************
  40. *** 683,684 ****
  41. --- 683,686 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     326,
  45.   /**/
  46.  
  47. -- 
  48. From "know your smileys":
  49.  :q    vi user saying, "How do I get out of this damn emacs editor?"
  50.  
  51.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  52. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  53. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  54.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  55.