fix starting 'goToLine' function in line_gap.sml; previously, we were comparing 'searchLine' to 'idx' to decide where to move buffer, but now we are comparing 'searchLine' to buffer's 'line' instead which is correct

This commit is contained in:
2024-10-28 21:33:52 +00:00
parent d2e5c23c61
commit d59d0bb17f

View File

@@ -2203,7 +2203,7 @@ struct
let let
val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer
in in
if searchLine < idx then if searchLine < line then
helpGoToLineLeft helpGoToLineLeft
( idx ( idx
, line , line
@@ -2213,7 +2213,7 @@ struct
, rightStrings , rightStrings
, rightLines , rightLines
) )
else if searchLine > idx then else if searchLine > line then
helpGoToLineRight helpGoToLineRight
( idx ( idx
, line , line