in NormalMove.moveToLine function, use new LineGap function, 'LineGap.lineNumberToIdx', to get the index a line is at, and delete the Cursor.getLineStartIdx' function which we no longer need, as that functionality is in brolib-sml itself.

This commit is contained in:
2025-09-19 04:45:29 +01:00
parent 38c1766b14
commit e4e3961d41
3 changed files with 2 additions and 69 deletions

View File

@@ -128,7 +128,7 @@ struct
val buffer = LineGap.goToLine (reqLine, buffer)
(* get idx of first chr after linebreak *)
val cursorIdx = Cursor.getLineStartIdx (buffer, reqLine)
val cursorIdx = LineGap.lineNumberToIdx (reqLine, buffer)
val buffer = LineGap.goToIdx (cursorIdx, buffer)
(* we got the line start idx, but we want to move to the index