Karsten Hopp d83a62
To: vim_dev@googlegroups.com
Karsten Hopp d83a62
Subject: Patch 7.4.810
Karsten Hopp d83a62
Fcc: outbox
Karsten Hopp d83a62
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d83a62
Mime-Version: 1.0
Karsten Hopp d83a62
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d83a62
Content-Transfer-Encoding: 8bit
Karsten Hopp d83a62
------------
Karsten Hopp d83a62
Karsten Hopp d83a62
Patch 7.4.810
Karsten Hopp d83a62
Problem:    With a sequence of commands using buffers in diff mode E749 is
Karsten Hopp d83a62
            given. (itchyny)
Karsten Hopp d83a62
Solution:   Skip unloaded buffer. (Hirohito Higashi)
Karsten Hopp d83a62
Files:      src/diff.c
Karsten Hopp d83a62
Karsten Hopp d83a62
Karsten Hopp d83a62
*** ../vim-7.4.809/src/diff.c	2015-07-03 15:06:49.714360608 +0200
Karsten Hopp d83a62
--- src/diff.c	2015-08-04 21:30:25.100999807 +0200
Karsten Hopp d83a62
***************
Karsten Hopp d83a62
*** 804,811 ****
Karsten Hopp d83a62
      for (idx_new = idx_orig + 1; idx_new < DB_COUNT; ++idx_new)
Karsten Hopp d83a62
      {
Karsten Hopp d83a62
  	buf = curtab->tp_diffbuf[idx_new];
Karsten Hopp d83a62
! 	if (buf == NULL)
Karsten Hopp d83a62
! 	    continue;
Karsten Hopp d83a62
  	if (diff_write(buf, tmp_new) == FAIL)
Karsten Hopp d83a62
  	    continue;
Karsten Hopp d83a62
  	diff_file(tmp_orig, tmp_new, tmp_diff);
Karsten Hopp d83a62
--- 804,811 ----
Karsten Hopp d83a62
      for (idx_new = idx_orig + 1; idx_new < DB_COUNT; ++idx_new)
Karsten Hopp d83a62
      {
Karsten Hopp d83a62
  	buf = curtab->tp_diffbuf[idx_new];
Karsten Hopp d83a62
! 	if (buf == NULL || buf->b_ml.ml_mfp == NULL)
Karsten Hopp d83a62
! 	    continue; /* skip buffer that isn't loaded */
Karsten Hopp d83a62
  	if (diff_write(buf, tmp_new) == FAIL)
Karsten Hopp d83a62
  	    continue;
Karsten Hopp d83a62
  	diff_file(tmp_orig, tmp_new, tmp_diff);
Karsten Hopp d83a62
*** ../vim-7.4.809/src/version.c	2015-08-04 21:27:02.767279357 +0200
Karsten Hopp d83a62
--- src/version.c	2015-08-04 21:32:41.559463140 +0200
Karsten Hopp d83a62
***************
Karsten Hopp d83a62
*** 743,744 ****
Karsten Hopp d83a62
--- 743,746 ----
Karsten Hopp d83a62
  {   /* Add new patch number below this line */
Karsten Hopp d83a62
+ /**/
Karsten Hopp d83a62
+     810,
Karsten Hopp d83a62
  /**/
Karsten Hopp d83a62
Karsten Hopp d83a62
-- 
Karsten Hopp d83a62
A vacation is a period of travel during which you find that you
Karsten Hopp d83a62
took twice as many clothes and half as much money as you needed.
Karsten Hopp d83a62
Karsten Hopp d83a62
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d83a62
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d83a62
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d83a62
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///