add cursorIdx to app type in fcore
This commit is contained in:
@@ -4,12 +4,14 @@ struct
|
||||
|
||||
fun bufferAndSize (app: app_type, newBuffer, newWidth, newHeight) =
|
||||
let
|
||||
val {buffer = _, windowWidth = _, windowHeight = _, startLine} = app
|
||||
val {buffer = _, windowWidth = _, windowHeight = _, startLine, cursorIdx} =
|
||||
app
|
||||
in
|
||||
{ buffer = newBuffer
|
||||
, windowWidth = newWidth
|
||||
, windowHeight = newHeight
|
||||
, startLine = startLine
|
||||
, cursorIdx = cursorIdx
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user