add additional test for 'dn' motion after finding bug, fixed bug (rewrote high-level delete fundtion in persistent-vector.sml to address it), and begin adding tests for 'dN' motion
This commit is contained in:
@@ -144,13 +144,13 @@ struct
|
||||
in
|
||||
(buffer, searchList)
|
||||
end
|
||||
else if PersistentVector.isInRange (idx, searchList) then
|
||||
(buffer, searchList)
|
||||
else if Dfa.isDead curState then
|
||||
if prevFinalPos = ~1 then
|
||||
(* no match found: restart search from `startPos + 1` *)
|
||||
insertUntilMatch
|
||||
(startPos + 1, buffer, searchList, dfa, 0, startPos + 1, ~1)
|
||||
else if PersistentVector.isInRange (prevFinalPos, searchList) then
|
||||
(buffer, searchList)
|
||||
else
|
||||
(* new match. Insert and continue *)
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user