2024-10-08 08:53:43 +01:00
|
|
|
structure AppWith =
|
|
|
|
|
struct
|
|
|
|
|
open AppType
|
|
|
|
|
|
|
|
|
|
fun bufferAndSize (app: app_type, newBuffer, newWidth, newHeight) =
|
|
|
|
|
let
|
2024-10-09 10:59:32 +01:00
|
|
|
val {buffer = _, windowWidth = _, windowHeight = _, startLine, cursorIdx} =
|
|
|
|
|
app
|
2024-10-08 08:53:43 +01:00
|
|
|
in
|
|
|
|
|
{ buffer = newBuffer
|
|
|
|
|
, windowWidth = newWidth
|
|
|
|
|
, windowHeight = newHeight
|
|
|
|
|
, startLine = startLine
|
2024-10-09 10:59:32 +01:00
|
|
|
, cursorIdx = cursorIdx
|
2024-10-08 08:53:43 +01:00
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
end
|