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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user