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

36 lines
736 B
Standard ML

structure AppWith =
struct
open AppType
(* this function exists only for testing *)
fun idx (app, newIdx) =
let
val
{ startLine
, buffer
, bufferModifyTime
, searchList
, dfa
, mode
, windowWidth
, windowHeight
, msgs
, visualScrollColumn
, cursorIdx = _
} = app
in
{ startLine = startLine
, buffer = buffer
, bufferModifyTime = bufferModifyTime
, searchList = searchList
, dfa = dfa
, mode = mode
, windowWidth = windowWidth
, windowHeight = windowHeight
, msgs = msgs
, visualScrollColumn = visualScrollColumn
, cursorIdx = newIdx
}
end
end