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

36 lines
736 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
2025-10-09 05:34:32 +01:00
, dfa
, mode
, windowWidth
, windowHeight
, msgs
, visualScrollColumn
, cursorIdx = _
} = app
in
{ startLine = startLine
, buffer = buffer
, bufferModifyTime = bufferModifyTime
, searchList = searchList
2025-10-09 05:34:32 +01:00
, dfa = dfa
, mode = mode
, windowWidth = windowWidth
, windowHeight = windowHeight
, msgs = msgs
, visualScrollColumn = visualScrollColumn
, cursorIdx = newIdx
}
end
2024-10-08 08:53:43 +01:00
end