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:
@@ -27,7 +27,7 @@ struct
|
|||||||
TextScroll.getScrollColumn
|
TextScroll.getScrollColumn
|
||||||
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
||||||
|
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine =
|
val startLine =
|
||||||
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ struct
|
|||||||
} = app
|
} = app
|
||||||
|
|
||||||
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine = TextScroll.getLineCentre (cursorLine, windowHeight)
|
val startLine = TextScroll.getLineCentre (cursorLine, windowHeight)
|
||||||
|
|
||||||
val buffer = LineGap.goToLine (startLine, buffer)
|
val buffer = LineGap.goToLine (startLine, buffer)
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ struct
|
|||||||
TextScroll.getScrollColumn
|
TextScroll.getScrollColumn
|
||||||
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
||||||
|
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine =
|
val startLine =
|
||||||
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ struct
|
|||||||
TextScroll.getScrollColumn
|
TextScroll.getScrollColumn
|
||||||
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
(buffer, cursorIdx, windowWidth, prevScrollColumn)
|
||||||
|
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine =
|
val startLine =
|
||||||
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ struct
|
|||||||
)
|
)
|
||||||
|
|
||||||
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine =
|
val startLine =
|
||||||
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
TextScroll.getStartLine (prevLineNumber, cursorLine, windowHeight)
|
||||||
val buffer = LineGap.goToLine (startLine, buffer)
|
val buffer = LineGap.goToLine (startLine, buffer)
|
||||||
@@ -120,7 +120,7 @@ struct
|
|||||||
)
|
)
|
||||||
|
|
||||||
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
||||||
val cursorLine = LineGap.getLineNumberOfIdx (cursorIdx, buffer)
|
val cursorLine = LineGap.idxToLineNumber (cursorIdx, buffer)
|
||||||
val startLine =
|
val startLine =
|
||||||
TextScroll.getStartLine (prevLineNumber, cursorLine, newWindowHeight)
|
TextScroll.getStartLine (prevLineNumber, cursorLine, newWindowHeight)
|
||||||
val buffer = LineGap.goToLine (startLine, buffer)
|
val buffer = LineGap.goToLine (startLine, buffer)
|
||||||
|
|||||||
Submodule lib/brolib-sml updated: bef4620cdb...749a0d0e5f
Reference in New Issue
Block a user