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 b0b0f93 commit 13769c0Copy full SHA for 13769c0
xtra/PATCH.LUA
@@ -102,7 +102,7 @@ local function patch(p)
102
hunk=parseHunkHeader()
103
if hunk then
104
io.write("\t@@ -" .. hunk.old.start .. "," .. hunk.old.lines .. " +" .. hunk.new.start .. "," .. hunk.new.lines .. " @@: ")
105
- local skip, line = hunk.old.start - 1
+ local skip, line = hunk.old.start > 0 and hunk.old.start - 1 or 0
106
if hunk.new.start - 1 ~= skip then print("malformed")os.exit(1) end
107
while bl < skip do
108
line, bl = bf:read("*l"), bl + 1
0 commit comments