diff src/diff.c @ 6286:f21a2f67bdbb v7.4.477

updated for version 7.4.477 Problem: When using ":%diffput" and the other file is empty an extra empty line remains. Solution: Set the buf_empty flag.
author Bram Moolenaar <bram@vim.org>
date Wed, 15 Oct 2014 12:56:49 +0200
parents e3d2b8d83bb3
children df92c2b2a179
line wrap: on
line diff
--- a/src/diff.c
+++ b/src/diff.c
@@ -2325,7 +2325,7 @@ ex_diffgetput(eap)
 		    end_skip = 0;
 	    }
 
-	    buf_empty = FALSE;
+	    buf_empty = bufempty();
 	    added = 0;
 	    for (i = 0; i < count; ++i)
 	    {