Skip to content

Commit 62b55c3

Browse files
committed
Make sure buffer is flushed before finishing.
1 parent c5d81ed commit 62b55c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/xtra/DIFF.LUA

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ local function diff_u(fn1,fn2)
8686

8787
until not l1 and not l2
8888
f1:close() f2:close()
89-
if #add > 0 or #del > 0 then flush_pre() flush_hunk() flush_buf() end
89+
if #add > 0 or #del > 0 then flush_pre() flush_hunk() end
90+
if #buf.line > 0 then flush_buf() end
9091
end
9192

9293
if #arg < 2 then return end

0 commit comments

Comments
 (0)