fix bugs in implementing and using text buffer. Some functions did not save the drawMsg to the app's state, which we means we didn't draw in those cases. The text builder functions also drew cursors on characters even when the cursor is not at this position. Both of these bugs are fixed.

This commit is contained in:
2025-09-12 23:21:53 +01:00
parent 77a64ae794
commit 422d6ad9ac
6 changed files with 14 additions and 16 deletions

View File

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