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:
@@ -18,7 +18,7 @@ struct
|
|||||||
(case tl of
|
(case tl of
|
||||||
_ :: _ =>
|
_ :: _ =>
|
||||||
(* if there is another string after current head, we can increment cursorIdx *)
|
(* 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 *)
|
(* if there is no string after current head, return original cursorIdx *)
|
||||||
cursorIdx)
|
cursorIdx)
|
||||||
|
|||||||
Reference in New Issue
Block a user