diff --git a/src/line_gap.sml b/src/line_gap.sml index ea159c3..a79e6b7 100644 --- a/src/line_gap.sml +++ b/src/line_gap.sml @@ -3230,7 +3230,7 @@ struct case (rightStrings, rightLines) of (shd :: stl, lhd :: ltl) => let - val nextLine = curLine + Vector.length hd + val nextLine = curLine + Vector.length lhd in if findLine <= nextLine then let val relativeLine = findLine - curLine - 1