change type of SEARCH message to take a DFA, instead of a searchString

This commit is contained in:
2025-10-08 05:54:19 +01:00
parent 06106f5de8
commit 5c8e74ac11
5 changed files with 22 additions and 27 deletions

View File

@@ -77,8 +77,12 @@ struct
, ...
} = app
val dfa =
if caseSensitive then CaseSensitiveDfa.fromString searchString
else CaseInsensitiveDfa.fromString searchString
val buffer = LineGap.goToStart buffer
val initialMsg = [SEARCH (buffer, searchString, time)]
val initialMsg = [SEARCH (buffer, dfa, time)]
(* move LineGap to first line displayed on screen *)
val buffer = LineGap.goToLine (startLine, buffer)
@@ -100,10 +104,6 @@ struct
val msgs = DRAW drawMsg :: initialMsg
val mode = NORMAL_MODE ""
val dfa =
if caseSensitive then CaseSensitiveDfa.fromString searchString
else CaseInsensitiveDfa.fromString searchString
in
NormalSearchModeWith.returnToNormalMode
(app, buffer, tempSearchList, startLine, mode, dfa, msgs)