Karsten Hopp ec40ab
To: vim_dev@googlegroups.com
Karsten Hopp ec40ab
Subject: Patch 7.3.523
Karsten Hopp ec40ab
Fcc: outbox
Karsten Hopp ec40ab
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ec40ab
Mime-Version: 1.0
Karsten Hopp ec40ab
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ec40ab
Content-Transfer-Encoding: 8bit
Karsten Hopp ec40ab
------------
Karsten Hopp ec40ab
Karsten Hopp ec40ab
Patch 7.3.523
Karsten Hopp ec40ab
Problem:    ":diffupdate" doesn't check for files changed elsewhere.
Karsten Hopp ec40ab
Solution:   Add the ! flag. (Christian Brabandt)
Karsten Hopp ec40ab
Files:	    runtime/doc/diff.txt, src/diff.c, src/ex_cmds.h
Karsten Hopp ec40ab
Karsten Hopp ec40ab
Karsten Hopp ec40ab
*** ../vim-7.3.522/runtime/doc/diff.txt	2010-08-15 21:57:16.000000000 +0200
Karsten Hopp ec40ab
--- runtime/doc/diff.txt	2012-05-18 18:41:49.000000000 +0200
Karsten Hopp ec40ab
***************
Karsten Hopp ec40ab
*** 178,184 ****
Karsten Hopp ec40ab
  nodiff" before hiding it.
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  							*:diffu* *:diffupdate*
Karsten Hopp ec40ab
! :diffu[pdate]			Update the diff highlighting and folds.
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  Vim attempts to keep the differences updated when you make changes to the
Karsten Hopp ec40ab
  text.  This mostly takes care of inserted and deleted lines.  Changes within a
Karsten Hopp ec40ab
--- 178,184 ----
Karsten Hopp ec40ab
  nodiff" before hiding it.
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  							*:diffu* *:diffupdate*
Karsten Hopp ec40ab
! :diffu[pdate][!]		Update the diff highlighting and folds.
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  Vim attempts to keep the differences updated when you make changes to the
Karsten Hopp ec40ab
  text.  This mostly takes care of inserted and deleted lines.  Changes within a
Karsten Hopp ec40ab
***************
Karsten Hopp ec40ab
*** 187,192 ****
Karsten Hopp ec40ab
--- 187,195 ----
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  	:diffupdate
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
+ If the ! is included Vim will check if the file was changed externally and
Karsten Hopp ec40ab
+ needs to be reloaded.  It will prompt for each changed file, like `:checktime`
Karsten Hopp ec40ab
+ was used.
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
  Vim will show filler lines for lines that are missing in one window but are
Karsten Hopp ec40ab
  present in another.  These lines were inserted in another file or deleted in
Karsten Hopp ec40ab
*** ../vim-7.3.522/src/diff.c	2010-09-21 16:56:29.000000000 +0200
Karsten Hopp ec40ab
--- src/diff.c	2012-05-18 18:45:09.000000000 +0200
Karsten Hopp ec40ab
***************
Karsten Hopp ec40ab
*** 783,788 ****
Karsten Hopp ec40ab
--- 783,797 ----
Karsten Hopp ec40ab
  	goto theend;
Karsten Hopp ec40ab
      }
Karsten Hopp ec40ab
  
Karsten Hopp ec40ab
+     /* :diffupdate! */
Karsten Hopp ec40ab
+     if (eap != NULL && eap->forceit)
Karsten Hopp ec40ab
+ 	for (idx_new = idx_orig; idx_new < DB_COUNT; ++idx_new)
Karsten Hopp ec40ab
+ 	{
Karsten Hopp ec40ab
+ 	    buf = curtab->tp_diffbuf[idx_new];
Karsten Hopp ec40ab
+ 	    if (buf_valid(buf))
Karsten Hopp ec40ab
+ 		buf_check_timestamp(buf, FALSE);
Karsten Hopp ec40ab
+ 	}
Karsten Hopp ec40ab
+ 
Karsten Hopp ec40ab
      /* Write the first buffer to a tempfile. */
Karsten Hopp ec40ab
      buf = curtab->tp_diffbuf[idx_orig];
Karsten Hopp ec40ab
      if (diff_write(buf, tmp_orig) == FAIL)
Karsten Hopp ec40ab
*** ../vim-7.3.522/src/ex_cmds.h	2012-02-13 00:01:38.000000000 +0100
Karsten Hopp ec40ab
--- src/ex_cmds.h	2012-05-18 18:37:56.000000000 +0200
Karsten Hopp ec40ab
***************
Karsten Hopp ec40ab
*** 304,310 ****
Karsten Hopp ec40ab
  EX(CMD_display,		"display",	ex_display,
Karsten Hopp ec40ab
  			EXTRA|NOTRLCOM|TRLBAR|SBOXOK|CMDWIN),
Karsten Hopp ec40ab
  EX(CMD_diffupdate,	"diffupdate",	ex_diffupdate,
Karsten Hopp ec40ab
! 			TRLBAR),
Karsten Hopp ec40ab
  EX(CMD_diffget,		"diffget",	ex_diffgetput,
Karsten Hopp ec40ab
  			RANGE|EXTRA|TRLBAR|MODIFY),
Karsten Hopp ec40ab
  EX(CMD_diffoff,		"diffoff",	ex_diffoff,
Karsten Hopp ec40ab
--- 304,310 ----
Karsten Hopp ec40ab
  EX(CMD_display,		"display",	ex_display,
Karsten Hopp ec40ab
  			EXTRA|NOTRLCOM|TRLBAR|SBOXOK|CMDWIN),
Karsten Hopp ec40ab
  EX(CMD_diffupdate,	"diffupdate",	ex_diffupdate,
Karsten Hopp ec40ab
! 			BANG|TRLBAR),
Karsten Hopp ec40ab
  EX(CMD_diffget,		"diffget",	ex_diffgetput,
Karsten Hopp ec40ab
  			RANGE|EXTRA|TRLBAR|MODIFY),
Karsten Hopp ec40ab
  EX(CMD_diffoff,		"diffoff",	ex_diffoff,
Karsten Hopp ec40ab
*** ../vim-7.3.522/src/version.c	2012-05-18 18:34:15.000000000 +0200
Karsten Hopp ec40ab
--- src/version.c	2012-05-18 18:39:13.000000000 +0200
Karsten Hopp ec40ab
***************
Karsten Hopp ec40ab
*** 716,717 ****
Karsten Hopp ec40ab
--- 716,719 ----
Karsten Hopp ec40ab
  {   /* Add new patch number below this line */
Karsten Hopp ec40ab
+ /**/
Karsten Hopp ec40ab
+     523
Karsten Hopp ec40ab
  /**/
Karsten Hopp ec40ab
Karsten Hopp ec40ab
-- 
Karsten Hopp ec40ab
"The future's already arrived - it's just not evenly distributed yet."
Karsten Hopp ec40ab
		-- William Gibson
Karsten Hopp ec40ab
Karsten Hopp ec40ab
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ec40ab
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ec40ab
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ec40ab
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///