have functionality for cursor to scroll down a line when cursor moves down one line working, but it only seems to work perfectly when there are no visual line breaks

This commit is contained in:
2024-10-28 21:56:07 +00:00
parent 0ed5a23ade
commit bff4c006ed
5 changed files with 75 additions and 304 deletions

View File

@@ -2,6 +2,26 @@ structure AppWith =
struct
open AppType
fun startLine (app: app_type, startLine, newBuffer) =
let
val
{ startLine = _
, buffer = _
, mode
, windowWidth
, windowHeight
, cursorIdx
} = app
in
{ startLine = startLine
, buffer = newBuffer
, mode = mode
, windowWidth = windowWidth
, windowHeight = windowHeight
, cursorIdx = cursorIdx
}
end
fun bufferAndSize (app: app_type, newBuffer, newWidth, newHeight) =
let
val