reimplement vi's 'e' command

This commit is contained in:
2025-07-20 17:48:45 +01:00
parent 146953c25d
commit d3e54d4102
2 changed files with 30 additions and 2 deletions

View File

@@ -1055,8 +1055,7 @@ struct
end
(* equivalent of vi's `e` command *)
fun endOfWord (lineGap, cursorIdx) =
toEndOfWord (lineGap, cursorIdx, helpEndOfWord)
val endOfWord = ViWordDfa.endOfCurrentWord
(* equivalent of vi's `E` command *)
val endOfWORD = ViWORDDfa.endOfCurrentWORD