reimplement vi's 'E' command

This commit is contained in:
2025-07-20 14:00:59 +01:00
parent 2b060b99a0
commit 90c0d657bc
2 changed files with 32 additions and 2 deletions

View File

@@ -1169,8 +1169,7 @@ struct
toEndOfWord (lineGap, cursorIdx, helpEndOfWord)
(* equivalent of vi's `E` command *)
fun endOfWORD (lineGap, cursorIdx) =
toEndOfWord (lineGap, cursorIdx, helpEndOfWORD)
val endOfWORD = ViWORDDfa.endOfCurrentWORD
(* vi's 'e' command takes user last char in word
* but 'de' deletes up to and including last char of word