3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.308
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.308
3ef2ca
Problem:    When using ":diffsplit" on an empty file the cursor is displayed
3ef2ca
	    on the command line.
3ef2ca
Solution:   Limit the value of w_topfill.
3ef2ca
Files:	    src/diff.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.307/src/diff.c	2013-09-20 20:13:48.000000000 +0200
3ef2ca
--- src/diff.c	2014-05-28 11:30:11.724008432 +0200
3ef2ca
***************
3ef2ca
*** 622,627 ****
3ef2ca
--- 622,628 ----
3ef2ca
  		    wp->w_topfill = (n < 0 ? 0 : n);
3ef2ca
  		else if (n > 0 && n > wp->w_topfill)
3ef2ca
  		    wp->w_topfill = n;
3ef2ca
+ 		check_topfill(wp, FALSE);
3ef2ca
  	    }
3ef2ca
  	}
3ef2ca
  }
3ef2ca
*** ../vim-7.4.307/src/version.c	2014-05-22 21:22:15.361995652 +0200
3ef2ca
--- src/version.c	2014-05-28 11:34:01.064010440 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     308,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
msdn.microsoft.com:
3ef2ca
ERROR_SUCCESS 0 (0x0) The operation completed successfully.
3ef2ca
I have always suspected that for Microsoft success is an error.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///