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.4 / 7.4.364 < prev    next >
Encoding:
Internet Message Format  |  2014-07-08  |  2.4 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.364
  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.4.364
  11. Problem:    When the viminfo file can't be renamed there is no error message.
  12.         (Vladimir Berezhnoy)
  13. Solution:   Check for the rename to fail.
  14. Files:        src/ex_cmds.c
  15.  
  16.  
  17. *** ../vim-7.4.363/src/ex_cmds.c    2014-05-22 14:00:12.694534712 +0200
  18. --- src/ex_cmds.c    2014-07-09 21:11:44.531557830 +0200
  19. ***************
  20. *** 2004,2014 ****
  21.       {
  22.       fclose(fp_in);
  23.   
  24. !     /*
  25. !      * In case of an error keep the original viminfo file.
  26. !      * Otherwise rename the newly written file.
  27. !      */
  28. !     if (viminfo_errcnt || vim_rename(tempname, fname) == -1)
  29.           mch_remove(tempname);
  30.   
  31.   #ifdef WIN3264
  32. --- 2004,2017 ----
  33.       {
  34.       fclose(fp_in);
  35.   
  36. !     /* In case of an error keep the original viminfo file.  Otherwise
  37. !      * rename the newly written file.  Give an error if that fails. */
  38. !     if (viminfo_errcnt == 0 && vim_rename(tempname, fname) == -1)
  39. !     {
  40. !         ++viminfo_errcnt;
  41. !         EMSG2(_("E886: Can't rename viminfo file to %s!"), fname);
  42. !     }
  43. !     if (viminfo_errcnt > 0)
  44.           mch_remove(tempname);
  45.   
  46.   #ifdef WIN3264
  47. *** ../vim-7.4.363/src/version.c    2014-07-09 20:51:04.519583033 +0200
  48. --- src/version.c    2014-07-09 21:13:18.575555919 +0200
  49. ***************
  50. *** 736,737 ****
  51. --- 736,739 ----
  52.   {   /* Add new patch number below this line */
  53. + /**/
  54. +     364,
  55.   /**/
  56.  
  57. -- 
  58. MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin,
  59.       then shalt thou count to three, no more, no less.  Three shalt be the
  60.       number thou shalt count, and the number of the counting shalt be three.
  61.       Four shalt thou not count, neither count thou two, excepting that thou
  62.       then proceed to three.  Five is right out.  Once the number three, being
  63.       the third number, be reached, then lobbest thou thy Holy Hand Grenade of
  64.       Antioch towards thou foe, who being naughty in my sight, shall snuff it.
  65.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  66.  
  67.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  68. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  69. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  70.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  71.