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