code function that can insert into both searchList and buffer

This commit is contained in:
2026-02-08 02:32:32 +00:00
parent 1fa2a44a2f
commit c28ae4d8cd
3 changed files with 52 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ struct
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val lineStart = Cursor.vi0 (buffer, cursorIdx)
(* todo: update searchList based on insert *)
val buffer = LineGap.insert (lineStart, " ", buffer)
val buffer = LineGap.goToIdx (lineStart, buffer)