additional preparation for drawing cursor (next, just need to send cursor vector)

This commit is contained in:
2024-10-09 11:36:05 +01:00
parent 9d7d00e8d1
commit 2afc54abc5
3 changed files with 79 additions and 78 deletions

View File

@@ -11,13 +11,12 @@ struct
val {buffer, windowWidth, windowHeight, startLine, cursorIdx} = app
val newBuffer = LineGap.goToLine (startLine, buffer)
val textVec = TextBuilder.build
val drawMsg = TextBuilder.build
(startLine, cursorIdx, newBuffer, newWidth, newHeight)
val newApp = AppWith.bufferAndSize (app, newBuffer, newWidth, newHeight)
val msg = REDRAW_TEXT textVec
in
(newApp, [DRAW msg])
(newApp, drawMsg)
end
fun update (app, msg) =