refactor some code to use looping in DFA (which is faster than looping outside of the data structure)

This commit is contained in:
2025-08-03 14:17:25 +01:00
parent 904526cd63
commit e078ca89d2
4 changed files with 86 additions and 36 deletions

View File

@@ -737,10 +737,12 @@ struct
* but 'de' deletes up to and including last char of word
* So we need to increment by one for deletion. *)
fun endOfWordPlusOne (lineGap, cursorIdx) =
endOfWord (lineGap, cursorIdx) + 1
(* todo: fix *)
endOfWord (lineGap, cursorIdx, 1) + 1
fun endOfWORDPlusOne (lineGap, cursorIdx) =
endOfWORD (lineGap, cursorIdx) + 1
(* todo: fix *)
endOfWORD (lineGap, cursorIdx, 1) + 1
fun helpFirstNonSpaceChr (strPos, str, absIdx, stl, ltl) =
if strPos = String.size str then