f0b6d33
To: vim-dev@vim.org
f0b6d33
Subject: Patch 7.2.210
f0b6d33
Fcc: outbox
f0b6d33
From: Bram Moolenaar <Bram@moolenaar.net>
f0b6d33
Mime-Version: 1.0
f0b6d33
Content-Type: text/plain; charset=UTF-8
f0b6d33
Content-Transfer-Encoding: 8bit
f0b6d33
------------
f0b6d33
f0b6d33
Patch 7.2.210
f0b6d33
Problem:    When a file that is being edited has its timestamp updated outside
f0b6d33
	    of Vim and ":checktime" is used still get a warning when writing
f0b6d33
	    the file. (Matt Mueller)
f0b6d33
Solution:   Store the timestamp in b_mtime_read when the timestamp is the only
f0b6d33
	    thing that changed.
f0b6d33
Files:	    src/fileio.c
f0b6d33
f0b6d33
f0b6d33
*** ../vim-7.2.209/src/fileio.c	2009-06-16 16:01:34.000000000 +0200
f0b6d33
--- src/fileio.c	2009-06-20 13:29:41.000000000 +0200
f0b6d33
***************
f0b6d33
*** 6627,6633 ****
f0b6d33
  			mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
f0b6d33
  			mesg2 = _("See \":help W16\" for more info.");
f0b6d33
  		    }
f0b6d33
! 		    /* Else: only timestamp changed, ignored */
f0b6d33
  		}
f0b6d33
  	    }
f0b6d33
  	}
f0b6d33
--- 6627,6636 ----
f0b6d33
  			mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
f0b6d33
  			mesg2 = _("See \":help W16\" for more info.");
f0b6d33
  		    }
f0b6d33
! 		    else
f0b6d33
! 			/* Only timestamp changed, store it to avoid a warning
f0b6d33
! 			 * in check_mtime() later. */
f0b6d33
! 			buf->b_mtime_read = buf->b_mtime;
f0b6d33
  		}
f0b6d33
  	    }
f0b6d33
  	}
f0b6d33
*** ../vim-7.2.209/src/version.c	2009-06-16 18:29:37.000000000 +0200
f0b6d33
--- src/version.c	2009-06-24 11:57:08.000000000 +0200
f0b6d33
***************
f0b6d33
*** 678,679 ****
f0b6d33
--- 678,681 ----
f0b6d33
  {   /* Add new patch number below this line */
f0b6d33
+ /**/
f0b6d33
+     210,
f0b6d33
  /**/
f0b6d33
f0b6d33
-- 
f0b6d33
Have you heard about the new Beowulf cluster? It's so fast, it executes
f0b6d33
an infinite loop in 6 seconds.
f0b6d33
f0b6d33
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
f0b6d33
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
f0b6d33
\\\        download, build and distribute -- http://www.A-A-P.org        ///
f0b6d33
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///