reimplement vi's '$' motion as a DFA, also eliminating a bug that involves double deleteion in the process

This commit is contained in:
2025-08-04 05:37:08 +01:00
parent fe9dd0f034
commit 528aea59a1
6 changed files with 78 additions and 94 deletions

View File

@@ -43,7 +43,6 @@ structure MoveViK = MakeMove (struct val fMove = Cursor.viK end)
structure MoveViL = MakeMove (struct val fMove = Cursor.viL end)
structure MoveToStartOfLine = MakeMove (struct val fMove = Cursor.vi0 end)
structure MoveToEndOfLine = MakeMove (struct val fMove = Cursor.viDlr end)
signature DFA_MOVE =
sig
@@ -82,3 +81,5 @@ structure MoveToEndOfPrevWord =
MakeDfaMove (struct val fMove = Cursor.endOfPrevWord end)
structure MoveToEndOfPrevWORD =
MakeDfaMove (struct val fMove = Cursor.endOfPrevWORD end)
structure MoveToEndOfLine = MakeDfaMove (struct val fMove = Cursor.viDlr end)