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