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 / 6.1.316 < prev    next >
Encoding:
Internet Message Format  |  2003-02-01  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.316
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.316
  11. Problem:    When exiting with "wq" and there is a hidden buffer, after the
  12.         "file changed" dialog there is a warning for a changed buffer.
  13.         (Ajit Thakkar)
  14. Solution:   Do update the buffer timestamps when exiting.
  15. Files:        src/fileio.c
  16.  
  17.  
  18. *** ../vim61.315/src/fileio.c    Wed Jan 29 22:08:43 2003
  19. --- src/fileio.c    Sat Feb  1 18:58:10 2003
  20. ***************
  21. *** 2519,2525 ****
  22.           msg_scroll = msg_save;
  23.           if (did_cmd)
  24.           {
  25. !         if (!exiting && overwriting)
  26.           {
  27.               /* Assume the buffer was written, update the timestamp. */
  28.               ml_timestamp(buf);
  29. --- 2519,2525 ----
  30.           msg_scroll = msg_save;
  31.           if (did_cmd)
  32.           {
  33. !         if (overwriting)
  34.           {
  35.               /* Assume the buffer was written, update the timestamp. */
  36.               ml_timestamp(buf);
  37. ***************
  38. *** 3793,3799 ****
  39.        * If written to the current file, update the timestamp of the swap file
  40.        * and reset the BF_WRITE_MASK flags. Also sets buf->b_mtime.
  41.        */
  42. !     if (!exiting && overwriting)
  43.       {
  44.       ml_timestamp(buf);
  45.       buf->b_flags &= ~BF_WRITE_MASK;
  46. --- 3793,3799 ----
  47.        * If written to the current file, update the timestamp of the swap file
  48.        * and reset the BF_WRITE_MASK flags. Also sets buf->b_mtime.
  49.        */
  50. !     if (overwriting)
  51.       {
  52.       ml_timestamp(buf);
  53.       buf->b_flags &= ~BF_WRITE_MASK;
  54. *** ../vim61.315/src/version.c    Sat Feb  1 18:48:57 2003
  55. --- src/version.c    Sun Feb  2 13:39:09 2003
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     316,
  62.   /**/
  63.  
  64. -- 
  65. From "know your smileys":
  66.  |-(    Contact lenses, but has lost them
  67.  
  68.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  69. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  70. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  71.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  72.