previously forgot to draw char in text builder, but we do that now

This commit is contained in:
2025-09-12 14:02:38 +01:00
parent 2ad7623848
commit 77a64ae794
5 changed files with 22 additions and 8 deletions

View File

@@ -77,7 +77,8 @@ struct
, cursor :: initialTextAcc
)
val drawMsg = Vector.concat drawMsg
val msgs = [DrawMsg.DRAW_TEXT drawMsg]
val drawMsg = DrawMsg.DRAW_TEXT drawMsg
val msgs = [MailboxType.DRAW drawMsg]
in
NormalSearchModeWith.changeTempSearchString
(app, buffer, startLine, mode, msgs)
@@ -150,7 +151,8 @@ struct
, cursor :: initialTextAcc
)
val drawMsg = Vector.concat drawMsg
val msgs = [DrawMsg.DRAW_TEXT drawMsg]
val drawMsg = DrawMsg.DRAW_TEXT drawMsg
val msgs = [MailboxType.DRAW drawMsg]
in
NormalSearchModeWith.bufferAndSize
(app, buffer, newWindowWidth, newWindowHeight, msgs)

View File

@@ -47,7 +47,15 @@ struct
(* save search string and tempSearchList and return to normal mode *)
fun saveSearch (app: app_type, searchString, tempSearchList, time) =
let
val {buffer, cursorIdx, windowWidth, windowHeight, startLine, ...} = app
val
{ buffer
, cursorIdx
, windowWidth
, windowHeight
, startLine
, visualScrollColumn
, ...
} = app
val buffer = LineGap.goToStart buffer
val searchString = EscapeString.unescape searchString
@@ -63,7 +71,7 @@ struct
(* move buffer to new startLine as required by TextBuilder.build *)
val buffer = LineGap.goToLine (startLine, buffer)
val msgs = TextBuilder.build
val drawMsg = NormalModeTextBuilder.build
( startLine
, cursorIdx
, buffer
@@ -71,8 +79,11 @@ struct
, windowHeight
, tempSearchList
, searchString
, initialMsg
, visualScrollColumn
)
val drawMsg = Vector.concat drawMsg
val drawMsg = DrawMsg.DRAW_TEXT drawMsg
val msgs = DRAW drawMsg :: initialMsg
val mode = NORMAL_MODE ""
in

View File

@@ -207,7 +207,8 @@ struct
in Utils.makeCursorOnChr (chr, posX, posY, env) :: acc
end
else
Utils.makeCursor (posX, posY, env) :: acc
Utils.makeChr (chr, posX, posY, env)
:: Utils.makeCursor (posX, posY, env) :: acc
in
build
( pos + 1

View File

@@ -276,7 +276,7 @@ struct
Utils.makeHighlightChr (chr, posX, posY, env)
:: Utils.makeHighlight (posX, posY, env) :: acc
else
acc
Utils.makeChr (chr, posX, posY, env) :: acc
in
build
( pos + 1

View File

@@ -152,7 +152,7 @@ struct
let
val shellState = consumeDrawEvents shellState
val _ = Gles3.clearColor (0.087, 0.095, 0.13, 1.0)
val _ = Gles3.clearColor (0.3, 0.3, 0.3, 1.0)
val _ = Gles3.clear ()
val app = update app