in viL function, use 'cursorIdx + 1' instead of 'bufferIdx + ...' because what we want is to increment the cursor by one index, rather than to move the cursor to the end of the hd

This commit is contained in:
2024-10-17 03:17:57 +01:00
parent 428e5f2ecd
commit 766ab6787c
2 changed files with 1 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ struct
(case tl of
_ :: _ =>
(* if there is another string after current head, we can increment cursorIdx *)
bufferIdx + String.size hd - 1
cursorIdx + 1
| _ =>
(* if there is no string after current head, return original cursorIdx *)
cursorIdx)

BIN
shf

Binary file not shown.