bug fix when yanking or deleting inside a word (we should not clip 'high' value, and we should search for end of word strictly); this handles cases like when we only have one character in the buffer, or an empty buffer

This commit is contained in:
2025-09-06 01:12:59 +01:00
parent b9332bcd94
commit 73ec4e7578
5 changed files with 249 additions and 730 deletions

View File

@@ -619,6 +619,7 @@ struct
(* equivalent of vi's `e` command *)
val endOfWord = ViWordDfa.endOfCurrentWord
val endOfWordForDelete = ViWordDfa.endOfCurrentWordForDelete
val endOfWordStrict = ViWordDfa.endOfCurrentWordStrict
(* equivalent of vi's `E` command *)
val endOfWORD = ViCapsWordDfa.endOfCurrentWORD