We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 851567a commit d679b3cCopy full SHA for d679b3c
demo/xtra/DIFF.LUA
@@ -16,7 +16,7 @@ local function diff_u(fn1,fn2)
16
end
17
local function flush_buf()
18
if #buf.line > 0 then
19
- buf.del, buf.add = #buf.line - buf.add - p1, #buf.line - buf.del - p2
+ buf.del, buf.add = #buf.line - buf.add, #buf.line - buf.del
20
local header = "@@ -" .. (buf.ls or "1") .. (buf.del == 1 and "" or "," .. buf.del) ..
21
" +" .. (buf.rs or "1") .. (buf.add == 1 and "" or "," .. buf.add) .. " @@"
22
table.insert(buf.line, 1, header)
0 commit comments