Files
sml-projects/fcore/app-with.sml

34 lines
686 B
Standard ML
Raw Normal View History

2024-10-08 08:53:43 +01:00
structure AppWith =
struct
open AppType
2025-08-20 13:50:57 +01:00
(* this function exists only for testing *)
fun idx (app, newIdx) =
let
val
{ startLine
, buffer
, bufferModifyTime
, searchList
, searchString
, mode
, windowWidth
, windowHeight
, msgs
, cursorIdx = _
} = app
in
{ startLine = startLine
, buffer = buffer
, bufferModifyTime = bufferModifyTime
, searchList = searchList
, searchString = searchString
, mode = mode
, windowWidth = windowWidth
, windowHeight = windowHeight
, msgs = msgs
, cursorIdx = newIdx
}
end
2024-10-08 08:53:43 +01:00
end