diff --git a/src/line_gap.sml b/src/line_gap.sml index 7785231..060bb91 100644 --- a/src/line_gap.sml +++ b/src/line_gap.sml @@ -2203,7 +2203,7 @@ struct let val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer in - if searchLine < idx then + if searchLine < line then helpGoToLineLeft ( idx , line @@ -2213,7 +2213,7 @@ struct , rightStrings , rightLines ) - else if searchLine > idx then + else if searchLine > line then helpGoToLineRight ( idx , line