only update search list if timestamp for search message is greater than the buffer's modified time

This commit is contained in:
2025-09-07 13:37:14 +01:00
parent f3c1905c0c
commit 299735f500
5 changed files with 20 additions and 12 deletions

View File

@@ -7,7 +7,8 @@ struct
let
val (buffer, searchString, time) = Mailbox.recv searchMailbox
val searchList = SearchList.build (buffer, searchString)
val () = Mailbox.send (inputMailbox, InputMsg.WITH_SEARCH_LIST searchList)
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
val () = Mailbox.send (inputMailbox, msg)
in
loop (searchMailbox, inputMailbox)
end