From d59d0bb17f1d45c034d6ceeb711de9f53b710f4d Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Mon, 28 Oct 2024 21:33:52 +0000 Subject: [PATCH] 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 --- src/line_gap.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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