073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.274
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.274
073263
Problem:    When doing ":update" just before running an external command that
073263
	    changes the file, the timestamp may be unchanged and the file
073263
	    is not reloaded.
073263
Solution:   Also check the file size.
073263
Files:	    src/fileio.c
073263
073263
073263
*** ../vim-7.4.273/src/fileio.c	2014-04-06 20:45:40.123357453 +0200
073263
--- src/fileio.c	2014-05-02 15:35:19.671279728 +0200
073263
***************
073263
*** 6897,6902 ****
073263
--- 6897,6903 ----
073263
  	    && buf->b_mtime != 0
073263
  	    && ((stat_res = mch_stat((char *)buf->b_ffname, &st)) < 0
073263
  		|| time_differs((long)st.st_mtime, buf->b_mtime)
073263
+ 		|| st.st_size != buf->b_orig_size
073263
  #ifdef HAVE_ST_MODE
073263
  		|| (int)st.st_mode != buf->b_orig_mode
073263
  #else
073263
*** ../vim-7.4.273/src/version.c	2014-04-29 20:04:05.331539784 +0200
073263
--- src/version.c	2014-05-02 15:36:22.619278625 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     274,
073263
  /**/
073263
073263
-- 
073263
A meeting is an event at which the minutes are kept and the hours are lost.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///