Skip to content

Commit ce80d08

Browse files
committed
LineContents:splitAtTags(): fix accidental 0-based index
1 parent 69e3665 commit ce80d08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

l0/ASSFoundation/LineContents.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unico
413413
local splitLines = {}
414414
self:callback(function(section,_,i,j)
415415
local splitLine = Line(self.line, self.line.parentCollection, {ASS={}})
416-
local splitSections = self:get(ASS.Section.Tag,0,i)
416+
local splitSections = self:get(ASS.Section.Tag,1,i)
417417
splitSections[#splitSections+1] = section
418418
splitLine.ASS = ASS.LineContents(splitLine, splitSections)
419419
splitLine.ASS:cleanTags(cleanLevel)

0 commit comments

Comments
 (0)