pull in new brolib-sml changes (which just changes one particular function's name to be clearer), and modify code to use the correct name

This commit is contained in:
2025-09-16 22:20:55 +01:00
parent c4fedc6434
commit 1adb74df2c
4 changed files with 7 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ struct
)
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
val startLine =
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
val buffer = LineGap.goToLine (startLine, buffer)
@@ -120,7 +120,7 @@ struct
)
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
val startLine =
TextScroll.getStartLine (prevLineNumber, cursorLine, newWindowHeight)
val buffer = LineGap.goToLine (startLine, buffer)