summaryrefslogtreecommitdiffstats
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-10-15 12:56:49 +0200
committerBram Moolenaar <Bram@vim.org>2014-10-15 12:56:49 +0200
commite962c6795be76884f3683d93487fb59d3dae9b0a (patch)
treeec6ad032001f3cb44774b0212fe9fedc08a52e72 /src/diff.c
parentdcc1ce2f5a640df9aca9122ecf145a1e95257cf4 (diff)
updated for version 7.4.477v7.4.477
Problem: When using ":%diffput" and the other file is empty an extra empty line remains. Solution: Set the buf_empty flag.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 98b791a720..d324f99d87 100644
--- 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)
{