progress fixing compile errors resulting from adding 'bufferModifyTime' field (fixed normal-mode move expressions)

This commit is contained in:
2025-08-20 12:50:39 +01:00
parent 642814fb36
commit c21d1b8205
7 changed files with 57 additions and 63 deletions

View File

@@ -12,7 +12,12 @@ functor MakeMove(Fn: MOVE): MAKE_MOVE =
struct
fun helpMove (app: AppType.app_type, buffer, cursorIdx, count) =
if count = 0 then
Finish.buildTextAndClear (app, buffer, cursorIdx, #searchList app, [])
let
val {searchList, bufferModifyTime, ...} = app
in
Finish.buildTextAndClear (app, buffer, cursorIdx, searchList, [],
bufferModifyTime)
end
else
(* move LineGap to cursorIdx, which is necessary for finding newCursorIdx *)
let
@@ -58,11 +63,11 @@ functor MakeDfaMove(Fn: DFA_MOVE): MAKE_DFA_MOVE =
struct
fun move (app: AppType.app_type, count) =
let
val {buffer, cursorIdx, ...} = app
val {buffer, cursorIdx, searchList, bufferModifyTime, ...} = app
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val cursorIdx = Fn.fMove (buffer, cursorIdx, count)
in
Finish.buildTextAndClear (app, buffer, cursorIdx, #searchList app, [])
Finish.buildTextAndClear (app, buffer, cursorIdx, searchList, [], bufferModifyTime)
end
end