Files
sml-projects/shf/fcore/app-with.sml
Humza Shahid 6b91d64fc3 Add 'shf/' from commit 'b6c5a95b664aeb861d7b33ffc9eefe447ba99dd7'
git-subtree-dir: shf
git-subtree-mainline: 401408448f
git-subtree-split: b6c5a95b66
2026-04-24 00:27:49 +01:00

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