We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b63165 commit d6b069cCopy full SHA for d6b069c
1 file changed
xtra/DIFF.LUA
@@ -30,7 +30,7 @@ local function diff_u(fn1,fn2)
30
local function pfl(p,s)return(p..s:gsub('\n$',''):gsub('\r$',''))end
31
local i,j,u=1,1
32
local function flush()if #u.l>0 then
33
- if u.e==4 then table.remove(u.l)end
+ if u.e==4 then table.remove(u.l)u.o.l,u.n.l=u.o.l-1,u.n.l-1 end
34
table.insert(u.l,1,"@@ -"..u.o.s..(u.o.l==1 and""or","..u.o.l).." +"..u.n.s..(u.n.l==1 and""or","..u.n.l).. " @@")
35
if not fh then
36
local function fn(s)return string.match(s,"%s")and '"'..s..'"'or s end
0 commit comments