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 62b55c3 commit f67623fCopy full SHA for f67623f
demo/xtra/DIFF.LUA
@@ -1,4 +1,4 @@
1
-#!/usr/bin/env lua
+#!/usr/bin/env lua
2
3
local function diff_u(fn1,fn2)
4
local function open(fn) local f, e = io.open(fn) if not f then print(e) os.exit(1) end return f end
@@ -70,12 +70,12 @@ local function diff_u(fn1,fn2)
70
local function right()
71
flush_pre() p1 = 4
72
table.insert(del, l1)
73
- l1 = f1:read("*l")
+ x, l1 = x + 1, f1:read("*l")
74
end
75
local function down()
76
flush_pre() p2 = 4
77
table.insert(add, l2)
78
- l2 = f2:read("*l")
+ y, l2 = y + 1, f2:read("*l")
79
80
repeat
81
if l1 == l2 then diagonal()
0 commit comments