Skip to content

Commit f238062

Browse files
committed
Remove broken early return logic.
1 parent 4e64dc0 commit f238062

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

xtra/DIFF.LUA

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ local function diff_u(fn1,fn2)
1919
local b1,e,b2=line(fn1,o1,l1)if not b1 then error(e)end b2,e=line(fn2,o2,l2)if not b2 then error(e)end
2020
return b1==b2 end
2121
local h,w,m=#f1//ps,#f2//ps,{}for i=1,h do for j=1,w do if cmp(i,j)then table.insert(m,j+(h*(i-1)))end end end
22-
if #m==0 then return end
2322
local function scr(x,y)local i,j=y+h*(x-1),0 for k=1,#m do if m[k]<=i then j=j+1 else return j,m[k]end end return j end
2423
local x,y,path=h,w,{}while x>0 and y>0 do
2524
local s=scr(x,y)if scr(x,y-1)==s-1 then table.insert(path,1,{x=x,y=y})x,y=x-1,y-1

0 commit comments

Comments
 (0)